On my page I have 2 trees. There is form on the page. One tree is shown on the page and another inside the form. I have create trees as below:
var myTree1 = Ext.create('Ext.tree.Panel', { store: store, //where store is hardcoded json tree data .... });
similarly myTree2 is declared with different store. It is shown inside a form. When I select on any node on myTree2 and click on create button then I must be able to add a new leaf node inside myTree1 at the same index.
Help I need are:
1. How to get index of selected node.
2. How to go to the index in myTree1, should be equal to the selected index myTree2.
3. How to add a leaf node at specific index.