Threaded View

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

      1  

    Default Row numberer not updating when changing page via paging toolbar

    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
    Description:
    • 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
      Code:
      {xtype:'rownumberer'}
      to the columns array in
      Code:
      examples/grid/paging.js
      then open the example and click the "next page" button on the paging toolbar.

    Possible fix:
    Code:
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi