1. #1
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    378
    Vote Rating
    2
    silcreval is on a distinguished road

      0  

    Default How to refresh GridPanel

    How to refresh GridPanel


    I have a simple gridpanel with a JsonStore, and want to change the
    contents of the grid using something like

    this.getStore().load()

    where this is the Ext.grid.GridPanel

    the baseParams will be changed before the load so I will receive
    a different list of items.

    I've tried this, but nothing seems to happen. No errors.

  2. #2
    Ext User
    Join Date
    Sep 2008
    Posts
    28
    Vote Rating
    0
    N00be is on a distinguished road

      0  

    Default


    Quote Originally Posted by silcreval View Post
    I have a simple gridpanel with a JsonStore, and want to change the
    contents of the grid using something like

    this.getStore().load()

    where this is the Ext.grid.GridPanel

    the baseParams will be changed before the load so I will receive
    a different list of items.

    I've tried this, but nothing seems to happen. No errors.

    Try

    this.getStore().reload()

  3. #3
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Quote Originally Posted by silcreval View Post
    but nothing seems to happen. No errors.
    Did you check firebug to see if an XHR was sent? What was the POST? What was the RESPONSE?

    Did you consult the Grid FAQ for all the usual debugging tips?

  4. #4
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    378
    Vote Rating
    2
    silcreval is on a distinguished road

      0  

    Default [SOLVED] How to refresh GridPanel

    [SOLVED] How to refresh GridPanel


    Thanks - reload worked perfectly.

Thread Participants: 2