Search code examples
nativescriptnativescript-telerik-ui

Nativescript Vue RadListView.notifyLoadOnDemandFinished is not a function


I'm using Nativescript + Vue.js + nativescript-ui-listview. I have an error RadListView.notifyLoadOnDemandFinished is not a function (tried both Android / iOS). Wrapped notifyLoadOnDemandFinished() in a setTimeout as it advised in this issue but it didn't help. Other 'notify' methods for example notifySwipeToExecuteFinished works fine. Here is a link to my code (nativescript playground).


Solution

  • While using references in Vue, you must use the .nativeView property to gain access to the actual component. So it should be,

    this.$refs.listView.nativeView.notifyLoadOnDemandFinished();