-
21 May 2012 11:40 PM #1
Answered: RowNumberer issue wtih using paging
Answered: RowNumberer issue wtih using paging
Hello everyone,
RowNumberer always starts with 1 while using paging. I was using PagingRowNumberer extension for ExtJS 2.x & 3.x. I've looked the documentation but I haven't seen any property for this. I want to learn if I didn't become aware of a config for this or what I need to do.
Thanks in advance,
With regards."People will never forget how you made them feel."
linkedin.com/in/talhakabakus
-
Best Answer Posted by sword-it
Hi,
For Ext4.X, you may use {xtype: 'rownumberer'}
sample is:-
For ext 3.X, you may use Ext.grid.RowNumberer()....Code:FOR Ext 4.X columns: [ {xtype: 'rownumberer'}, {text: "Company", flex: 1, sortable: true, dataIndex: 'company'}, {text: "Price", width: 120, sortable: true} ]
Code:For Ext 3.X var colModel = new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), {header: "Name", width: 80, sortable: true}, {header: "Code", width: 50, sortable: true} ]);
-
22 May 2012 12:01 AM #2Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 76
- Answers
- 124
Hi,
For Ext4.X, you may use {xtype: 'rownumberer'}
sample is:-
For ext 3.X, you may use Ext.grid.RowNumberer()....Code:FOR Ext 4.X columns: [ {xtype: 'rownumberer'}, {text: "Company", flex: 1, sortable: true, dataIndex: 'company'}, {text: "Price", width: 120, sortable: true} ]
Code:For Ext 3.X var colModel = new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), {header: "Name", width: 80, sortable: true}, {header: "Code", width: 50, sortable: true} ]);
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
22 May 2012 12:03 AM #3
"People will never forget how you made them feel."
linkedin.com/in/talhakabakus
-
22 May 2012 2:10 PM #4
Isn't the question why it always starts with one?
Isn't the question why it always starts with one?
Isn't the question why RowNumberer always starts with '1'? I have the 'pagingtoolbar' enabled - pages have 50 items - I would like for the second page to start RowNumberer with '51'. Just not sure how to ... any ideas? Thanks in advance ...


Reply With Quote