Re-number a 'RowNumbererColumn' after removing records from a store

  1. #1

    Re-number a 'RowNumbererColumn' after removing records from a store

    Hi all,

    I've been looking around on the forums and documentation but have been unable to find anything on this particular subject.

    When using an <ext:RowNumbererColumn/> on a gridview it happily copes with inserting records to the grid/store and increments the row numbers to take account of the new row, which is perfect.

    What I'm searching for, is a method to perform the same function when removing a record from the grid/store. At the moment when I remove a record from the middle of a list of items I end up with 1,2,4,5 for example.

    I can happily provide an example of the logic I'm using to remove records if it's of any help, but to avoid confusing things I will hold off in the hope that there is a simple .Repaint() function or similar,

    Any info on this one would be a great help,

    Many thanks,

    Doug
  2. #2
    Bump, would it help if I posted a code example?
  3. #3
    Hi,

    Please call
    grid.getView().refresh();
    after removing of a record.

Similar Threads

  1. [CLOSED] Get Row Number in Code Behind using RowNumbererColumn
    By asztern in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 28, 2012, 6:53 PM
  2. Replies: 1
    Last Post: Jan 05, 2012, 2:16 PM
  3. Replies: 5
    Last Post: Jun 14, 2011, 11:47 AM
  4. Replies: 4
    Last Post: May 14, 2010, 2:29 PM
  5. [CLOSED] GridView wrong number of records displayed
    By alexp in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 15, 2009, 11:03 AM

Tags for this Thread

Posting Permissions