1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    174
    Answers
    10
    Vote Rating
    1
    netemp is on a distinguished road

      0  

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

    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
    388
    Answers
    7
    Vote Rating
    17
    Zdeno will become famous soon enough

      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
    1
    netemp is on a distinguished road

      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.

Thread Participants: 1

Tags for this Thread