Some of you might have noticed that there is no
method in the ExtJS TreeStore class.
So, what if you want to remove a node from a ExtJs TreePanel or ExtJs TreeStore? I was struggeling to find out the same today. The workaround is simple, but dirty:
var store = Ext.data.StoreManager.lookup("yourtreestore"); var rec = store.getNodeById("node_id"); rec.destroy();
The ExtJs TreeStore does not look very mature to me, and the docs are not very good. If anyone are interested in reading some of the stuff I have worked out lately, let me know and I will write a post about ExtJs TreeStore and ExtJs TreePanel.