重新启用按需加载[NativeScript Vue] [英] Re-enable load on demand [NativeScript Vue]
问题描述
我有一个Radlistview,其中的数据根据用户查询切换出来.使用loadOnDemandMode="Auto"
,当当前查询用尽时,我随后调用notifyLoadOnDemandFinished(true)
.但是,在进行新查询时,我无法重新启用loadOnDemand,并且不会加载新项目.
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.
是否可以通过radListView对象上的方法重新激活loadOnDemand?我在文档中找不到任何内容.
Is there a way to reactivate loadOnDemand, perhaps with a method on the radListView object? I couldn't find anything in the docs.
推荐答案
发现了错误,在此处向可能有此问题的其他人发帖.
Found the mistake, posting here for anyone else that may have the problem.
我正在尝试设置
listView.loadOnDemandMode = "Auto"
添加_nativeView
修复了该问题
listView._nativeView.loadOnDemandMode = "Auto"
这篇关于重新启用按需加载[NativeScript Vue]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!