i am trying to delete an item list when the user taps on a delete button.
i delete the item from the store and the item is successfully deleted from the list , However, when i re-run the application all the items are present .
in order to delete the items permanently i tend to think that i must delete the item in the JSON file , how can i obtain the JSON string of the list and modify it.
i am using the following code for deleting the item :
var store = Ext.getStore('mylist');
store.removeAt(index);
this.getList().refresh();
If you’re working with localstorage, then you just need to do
store.sync()to propagate the changes to the store.