Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sencha touch 当用户滚动到列表末尾时,如何更新Sencha触摸列表_Sencha Touch_Extjs_Sencha Touch 2 - Fatal编程技术网

Sencha touch 当用户滚动到列表末尾时,如何更新Sencha触摸列表

Sencha touch 当用户滚动到列表末尾时,如何更新Sencha触摸列表,sencha-touch,extjs,sencha-touch-2,Sencha Touch,Extjs,Sencha Touch 2,我有一个应用程序,其中我有大约1000条记录要显示在localstore的sencha列表中。如果我尝试一次性填充所有数据,那么刷新列表需要很长时间(大约1分钟) 现在我想加载一个包含初始20条记录的列表,然后在用户向下滚动时加载下一个20条记录。当用户滚动到列表末尾时,如何捕获事件?这是摘录自 Ext.create('Ext.dataview.List'{ 配置:{ 插件:[ { xclass:'Ext.plugin.PullRefresh', pullRefreshText:“拉动以刷新…”

我有一个应用程序,其中我有大约1000条记录要显示在localstore的sencha列表中。如果我尝试一次性填充所有数据,那么刷新列表需要很长时间(大约1分钟)

现在我想加载一个包含初始20条记录的列表,然后在用户向下滚动时加载下一个20条记录。当用户滚动到列表末尾时,如何捕获事件?

这是摘录自

Ext.create('Ext.dataview.List'{
配置:{
插件:[
{
xclass:'Ext.plugin.PullRefresh',
pullRefreshText:“拉动以刷新…”
},
{
xclass:'Ext.plugin.ListPaging',
自动老化:真的吗
}
],
itemTpl:“{title}”,
商店:“商品”
}
});
从我这里,我添加的不是xclass:“”您还可以使用xtype:'listpaging'。它也能起作用

干杯,奥列格

如果仍然不清楚,请将代码片段粘贴到此处…

这是摘录自

Ext.create('Ext.dataview.List'{
配置:{
插件:[
{
xclass:'Ext.plugin.PullRefresh',
pullRefreshText:“拉动以刷新…”
},
{
xclass:'Ext.plugin.ListPaging',
自动老化:真的吗
}
],
itemTpl:“{title}”,
商店:“商品”
}
});
从我这里,我添加的不是xclass:“”您还可以使用xtype:'listpaging'。它也能起作用

干杯,奥列格


注:如果仍不清楚,请将代码片段粘贴到此处…

要添加到oleg sencha不分页ie,您的分页逻辑必须在服务器端。插件仅将页面参数增加1,该参数可在商店ajaxProxy的pageParam配置中配置,以添加到oleg sencha不分页ie分页逻辑必须在服务器端。该插件仅将页面参数增加1,可以在存储区ajaxProxy的pageParam配置中配置该参数。

您必须使用listpaging插件。@NareshTank。当用户在滚动时到达列表末尾时,我们不能找到事件吗?请检查此文档@NareshTank。谢谢你的回复。我相信这会达到我的目的。但Sencha文档中的示例更令人困惑。你能帮我得到一个有效的例子吗?你必须使用listpaging插件。@NareshTank。当用户在滚动时到达列表末尾时,我们不能找到事件吗?请检查此文档@NareshTank。谢谢你的回复。我相信这会达到我的目的。但Sencha文档中的示例更令人困惑。你能帮我拿一个有效的例子吗?
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'
    }
});