Threaded View

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-9183 in
  1. #1
    Sencha User
    Join Date
    May 2012
    Vote Rating
    jaredhobbs is on a distinguished road


    Default Row numberer not updating when changing page via paging toolbar

    Ext version tested:
    • Ext 4.2.0
    Browser versions tested against:
    • Chrome 27.0.1438.7 dev
    • When using a grid with a rownumberer column and the paging toolbar in 4.2.0, the row numbers aren't being updated when changing pages. For example, with 50 pages displayed, the row numberer shows 1-50. If you switch to page 2, instead of seeing 51-100 you see 1-50.
    Steps to reproduce the problem:
    • Add a row numberer to a grid with a paging toolbar then change to another page
    The result that was expected:
    • I expect the row numberer to display 51-100
    The result that occurs instead:
    • The row numberer displays 1-50
    Test Case:
    • Add
      to the columns array in
      then open the example and click the "next page" button on the paging toolbar.

    Possible fix:
    Ext.override(Ext.grid.RowNumberer, {
        renderer: function(value, metaData, record, rowIdx, colIdx, store) {
            var rowspan = this.rowspan;
            if (rowspan) {
                metaData.tdAttr = 'rowspan="' + rowspan + '"';
            metaData.tdCls = Ext.baseCSSPrefix + 'grid-cell-special';
            return store.indexOfTotal(record) + 1;
    Operating System:
    • OS X 10.8.3
    Last edited by jaredhobbs; 18 Mar 2013 at 11:13 AM. Reason: Added fix

Thread Participants: 2

Tags for this Thread