-
23 Aug 2010 1:04 AM #1
How to refresh DataGrid displayed store data?
How to refresh DataGrid displayed store data?
After I make some manipulations I extract needed model from the store of the DataGrid and change its data. I want the DataGrid to be updated.
Does anyone know how to do that?
-
23 Aug 2010 1:25 AM #2
You can simple call
Code:grid.getStore().update(mymodel);
-
25 Aug 2010 1:00 AM #3
Works, but just for the info for other users:
Your model class might need to override equals method (comparing by id for instance) if as mymodel you pass another instance.
-
25 Aug 2010 1:05 AM #4
Yes sure, the models have to be equal somehow.
Similar Threads
-
gridpanel store.loadData doesnt refresh data
By onedaysale in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 13 Aug 2008, 11:18 AM -
sorting problems in the datagrid when using Ext.data.Store
By vishcio.us in forum Ext 2.x: Help & DiscussionReplies: 15Last Post: 1 Jun 2008, 12:58 AM -
sorting problems in the datagrid when using Ext.data.Store
By vishcio.us in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 29 May 2008, 10:12 PM -
loading data into a store does not cause the associated grid to refresh
By bmf1972 in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 21 Apr 2008, 11:04 PM


Reply With Quote