PDA

View Full Version : Ext.tree.Panel: Removed records come back after sorting



mingbc
31 Jan 2013, 11:10 AM
Delete records from a Ext.tree.Panel using

grid.store.remove(record);
grd.refresh();

They are gone at once, but coming back after clicking the header for sorting.

Thanks for any clue.

mitchellsimoens
4 Feb 2013, 12:39 PM
The remove method on the TreeStore is inherited from the Store which will not work for a tree structure. You should try using the removeChild method on the node's parent.

mingbc
5 Feb 2013, 11:47 AM
It resolved my issue, thanks a lot!