简体   繁体   English

NoMoreRecordText属性不适用于Sencha Touch 2上的List-Paging插件

[英]NoMoreRecordText property is not working with the List-Paging plugin on Sencha Touch 2

I am using this plugin in my application and I am having the next problem: 我在应用程序中使用此插件,但遇到下一个问题:

When I am scrolling-down in the device I send a new request and I am receiving a new array with other list, the problem comes when array is empty, (It means I haven´t more data) the message in the bottom is "Load more ...." instead of "No more.." for instance... I don´t understand the problem... maybe it doesn´t detect the "end" .. help please! 当我在设备上向下滚动时,我发送一个新请求,并收到一个包含其他列表的新数组,当数组为空时,问题就来了,(这意味着我没有更多的数据了),底部的消息是“例如,加载更多....“而不是” No ..“ ...我不明白这个问题...也许它没有检测到”结束“ ..请帮助!

Code in the view is simple: 视图中的代码很简单:

//LISTPAGING
        {
            xclass: 'Ext.plugin.ListPaging',
            autoPaging: true,
            loadMoreText : 'Loading more..',
            noMoreRecordsText : 'All loaded'
        }

Code from the proxy: 来自代理的代码:

reader: {
                totalProperty: "total",
                rootProperty: "activities"
        },

Any clue?? 有任何线索吗?

SOLVED!!! 解决了!!!

Problem was coming with the TOTAL parameter from the backend, in my case the TOTAL was evaluated for each request, instead of items total.. 问题来自后端的TOTAL参数,在我的情况下,是针对每个请求评估TOTAL而不是项目总数。

CLOSED Roger and over ! 罗杰结束了! :-) :-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM