我有一个应用程序,其中有大约1000条记录要显示在localstore的sencha列表中。如果我尝试一次填充所有数据,那么刷新列表需要很长时间(大约1分钟)。
现在,我想加载带有初始20条记录的列表,然后当用户向下滚动时,它应该加载下一个20条记录。当用户滚动到列表末尾时,如何捕获事件?
这是Secncha Doc网站的摘录
Ext.create('Ext.dataview.List', {
config: {
plugins: [
{
xclass: 'Ext.plugin.PullRefresh',
pullRefreshText: 'Pull to refresh...'
},
{
xclass: 'Ext.plugin.ListPaging',
autoPaging: true
}
],
itemTpl: '<div class="item">{title}</div>',
store: 'Items'
}
});
我正在添加,而不是xclass:",您也可以使用xtype:"listpageing"。它也起作用。。。
干杯,Oleg
PS。如果仍然不清楚,请将您的代码片段粘贴到此处。。。
要添加到oleg sencha中,则不会分页,即您的分页逻辑必须在服务器端,插件仅将页面参数增加1,该参数可以在存储的ajaxProxy中的pageParam配置中配置