fhdeveloper
19 Jul 2010, 6:38 PM
I have a datastore associated with a view. In this view I have a Ext.list which refers to that store as well.
something like this:
this.data = new Ext.data.Store({....
this.list = new Ext.List({store: this.data....}
I want to refresh the data so that I can get the latest stuff from the server. The problem is there is no way to clear the store when the new data comes in -- so it just appends it to the existing data. I would like to clear all the stuff in the store before adding the new data. Is there a way to do this?
something like this:
this.data = new Ext.data.Store({....
this.list = new Ext.List({store: this.data....}
I want to refresh the data so that I can get the latest stuff from the server. The problem is there is no way to clear the store when the new data comes in -- so it just appends it to the existing data. I would like to clear all the stuff in the store before adding the new data. Is there a way to do this?