简体   繁体   中英

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!

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..

CLOSED Roger and over ! :-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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