24 Dec 2009 7:07 AM #1
Refresh a data in editor grid
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 useCode:
this.getStore().getLoader().load(); this.getView( ).refresh(true);
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.
28 Dec 2009 9:29 AM #2
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
30 Dec 2009 2:48 AM #3
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