PDA

View Full Version : How to rename the Child node in Tree dynamically.



tsuryap
26 Aug 2012, 11:36 PM
Hi
i want to change the name of the child node dynamically panel2.store.getRootNode() this path contains my root node.

vietits
27 Aug 2012, 12:14 AM
You could use getNodeById(nodeId) to get reference to node record and then change its properties. Example:


var node = panel2.store.getNodeById(Your_Node_Id_here);
node.set('text', 'New Text');

tsuryap
28 Aug 2012, 11:32 PM
thank you very much it is working..........