Results 1 to 3 of 3

Thread: Refresh a data in editor grid

  1. #1
    Ext User
    Join Date
    May 2008
    Posts
    19
    Vote Rating
    0
      0  

    Default Refresh a data in editor grid

    Hello,

    I have an Editor Grid and i load a data from an xml file using RequestBuilder and MemoryProxy. Now i want to refresh my grid i use
    Code:
    this.getStore().getLoader().load();
            this.getView( ).refresh(true);
    but that does't work.

    i think that i must modify the memoryProxy to include the new data but i don't know how i should do it.

    someone have any idea about this.

  2. #2
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    1
      0  

    Default

    instead of using a memoryproxy i would write my own proxy which calls the requestbuilder on demand.


    the other way is to create a complete new store and then use the Grid#reconfigure(ListStore<M> store, ColumnModel cm)
    but in your case i dont recommend it to use this.
    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts Search Results Advanced Search form Category overview http://www.extjs.com/forum/showthrea...041#post410041

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    MemoryProxy has a setData method. You need to call that. After that you will need to call load on the loader, the grid updates automatically

Posting Permissions

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