I have a store, I successfully upload records from it. Now I need to clear all the records. How can i do this?
myStore.remove(); // DID NOT WORK myStore.clear(); // ENDED UP WITH AN ERROR TypeError: myStore.clear is not a function
How can i solve this?
myStore.loadData([],false); is a solution.
myStore.loadData([],false);
Delete will delete the records that you transfer. Do you want to delete all as inmyStore.removeAll();
myStore.removeAll();
I find out that, at least on ExtJS 4.2.3, removeAll gives an error on the first release after loading. I resolved this:
store.clearData(); store.removeAll();