Hybrid View
-
24 Aug 2010 4:07 AM #1
Resetting the Ext.grid.RowNumberer
Resetting the Ext.grid.RowNumberer
Hi,
Does anyone know of an easy way to reset the Ext.grid.RowNumberer?
Specifically I've got a grid and am using the RowEditor to add a new entry to this (very similar to the RowEditor example: http://dev.sencha.com/deploy/dev/exa...ow-editor.html). When the user presses on cancel, during the edit of a new row, I remove this row from the grid and at this point I'd like to reset the row numbering so that the first entry again becomes number 1 (in the example, cancelling a new item actually leaves the new entry behind, but if you then click on the RemoveEmployee button you'll see that the top entry is now labelled as number 2).
Thanks for any help with this,
Steve
-
24 Aug 2010 2:45 PM #2
I can actually now answer my own question - if anyone's interested renumbering can be done using:
Code:grid.getView().refresh();
Similar Threads
-
use the Ext.grid.RowNumberer with pagination
By fxlacroix in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 12 Aug 2008, 4:38 AM -
problem with Ext.grid.RowNumberer
By tarini in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 25 Feb 2008, 5:10 AM -
Paging with Ext.grid.RowNumberer
By dam1an in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 12 Feb 2008, 6:38 AM


Reply With Quote