Which is the right way to do it?Code:store.removeAll(); store.clearData(); store.setData([]);
'clearData' seems the dataview/list items are still there, but it throws an exception when click them.
Which is the right way to do it?Code:store.removeAll(); store.clearData(); store.setData([]);
'clearData' seems the dataview/list items are still there, but it throws an exception when click them.
removeAll() is the way to do it.
clearData isn't public: http://docs.sencha.com/extjs/6.5.2/c...thod-clearData
removeAll() is the way to do it.
clearData isn't public: http://docs.sencha.com/extjs/6.5.2/c...thod-clearData
Twitter - @evantrimboli
Former Sencha framework engineer, available for consulting.
As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.