Re-enable load on demand [NativeScript Vue]

梦想的初衷 提交于 2019-12-11 18:33:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!