I need to reload the tree after deleting one of the node sheets. The problem of reloading the entire store is too slow. So I just want to reload node where its sheet is deleted.
I tried this, but it says null ...
Ext.getCmp('myTree').root.reload();
I also tried
var tempParent = Ext.getCmp('myTree').getSelectionModel().getSelection()[0].parentNode; Ext.StoreMgr.lookup('myStore').load( {node: tempParent});
this does not help ... Does anyone have similar problems that have been resolved?
Update
var node = Ext.getCmp('myTree').getSelectionModel().getSelection()[0].parentNode.get('id');
this gives me the parent node ... but when i load it
Ext.getCmp('myTree').store.load({ node: node });
I get this error
TypeError: b.getId is not a function
Second update -
This is what my tree looks like
Now when I delete the 1st sheet of the 2nd node ... the 1st node appears under the second Node
Eaglefox
source share