Results 1 to 3 of 3

Thread: Grid rownumberer always displaying '1' for all the newly added records in grid

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    174
    Answers
    10
    Vote Rating
    2
      0  

    Default Answered: Grid rownumberer always displaying '1' for all the newly added records in grid

    We are using Ext.grid.RowNumberer for displaying a number at each record in a grid.

    We have a button 'ADD' using which user can add a new row in the grid (using row editor) at index 0 in the grid.

    Now, the issue is, that the Row Numberer always displays '1' for all the newly added records!

    Thus, is there any method through which the row numberer can be reloaded or updated so that the row number is correct after new records have been added?


    Thanks for any help in advance.

    PS: ExtJS version used 4.1

  2. Did you try refresh view after you add new row?

    Code:
    grid.getView().refresh();

  3. #2
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    763
    Answers
    38
    Vote Rating
    73
      1  

    Default

    Did you try refresh view after you add new row?

    Code:
    grid.getView().refresh();

  4. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    174
    Answers
    10
    Vote Rating
    2
      0  

    Default

    Quote Originally Posted by Zdeno View Post
    Did you try refresh view after you add new row?

    Code:
    grid.getView().refresh();
    Thanks for sharing the solution Zdeno. Works all fine.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •