Results 1 to 4 of 4

Thread: How to refresh GridPanel

  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    379
    Vote Rating
    2
      0  

    Default 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
      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
    8
      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
    379
    Vote Rating
    2
      0  

    Default [SOLVED] How to refresh GridPanel

    Thanks - reload worked perfectly.

Posting Permissions

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