Sencha list paging plugin doesn´t work properly

本小妞迷上赌 提交于 2019-12-13 07:42:14

问题


I am trying to implement a feature with the "ListPaging" Sencha plugin, and its working correctly but with the next case I am having an exception. Server sents the total count of rows, for example 10, but if I have the pagesize property configurated with 11 rows, plugin doesn´t work. Here a little piece of code with the store implementation:

store = Ext.create('Cicero.store.activity.Activities', {
            storeId: storeId,
            pageSize: 10,
            autoLoad: false,
            clearOnPageLoad: false
        });

This is the plugin implementation in the view:

            //LISTPAGING
        {
            xclass: 'Ext.plugin.ListPaging',
            autoPaging: true,
            loadMoreText : 'Loading more activities',
            noMoreRecordsText : 'All Activities loaded'
        }
    ],
    scrollable: true,
    onItemDisclosure: true,
    emptyText: 'No activities found',

Mainly the problem is: All is working correct but when the number of records returned is less than the page size, the plugin doesn´t work..

Any clue?

来源:https://stackoverflow.com/questions/29079669/sencha-list-paging-plugin-doesn%c2%b4t-work-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!