[CLOSED] Records are not displaying as per pagesize in grid panel

  1. #1

    [CLOSED] Records are not displaying as per pagesize in grid panel

    Hi,

    We are using ext.net gridpanel with paging.
    If gridpanel have 10 records and pagesize is 1 then 2 records are displaying per page in grid. Grid should display records as per pagesize.
    Also, after changing page, last record on last page is displaying as first record on current page.
    However, on 'examples.ext.net' website this issue doesn't appear.
    We have updated source code and tested it, but still issue is there.
    Please provide solution to this issue.

    Thanks,
    alscg
    Last edited by Daniil; Apr 04, 2013 at 9:54 AM. Reason: [CLOSED]
  2. #2
    Hi @alscg,

    Thank you for the report.

    I discovered this issue yesterday and we are working on it.
  3. #3
    For now please use the following fix.

    Fix
    Ext.data.PagingStore.override({
        applyPaging : function () {
            var start = (this.currentPage - 1) * this.pageSize, 
                limit = this.pageSize;
    
            var allData = this.data, 
                data = new Ext.util.MixedCollection({
                    getKey: Ext.data.Store.recordIdFn,
                    maintainIndices: true
                });
    
            data.pageSize = this.pageSize;
                
            if (start >= allData.getCount()) {
                start = this.start = 0;
            }
            
            data.addAll(allData.getRange(start, start + limit - 1));
            this.allData = allData;
            this.data = data;
        }
    });
  4. #4
    We committed the fix to SVN. Please update.

Similar Threads

  1. [CLOSED] Displaying grid panel below text field input
    By MTSI in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 11, 2013, 12:31 PM
  2. Replies: 2
    Last Post: Oct 05, 2012, 1:55 PM
  3. Replies: 0
    Last Post: May 01, 2012, 9:43 AM
  4. Replies: 5
    Last Post: Nov 02, 2010, 3:56 PM
  5. CheckboxSelectionModel - displaying records as preselected
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 1
    Last Post: Oct 27, 2009, 7:31 PM

Posting Permissions