问题
I have a Radlistview, where the data switches out based on user query. With loadOnDemandMode="Auto"
and when the current query is exhausted, I then call notifyLoadOnDemandFinished(true)
. However, when a new query is made, I cannot re-enable loadOnDemand, and new items are not loaded.
Is there a way to reactivate loadOnDemand, perhaps with a method on the radListView object? I couldn't find anything in the docs.
回答1:
Found the mistake, posting here for anyone else that may have the problem.
I was trying to set
listView.loadOnDemandMode = "Auto"
adding _nativeView
fixed it
listView._nativeView.loadOnDemandMode = "Auto"
来源:https://stackoverflow.com/questions/55074311/re-enable-load-on-demand-nativescript-vue