I have a tree and a combo box.
-
I need to get the immediate children of node 1 and place them in the combo box.
-
When a node is selected from the combo box list, the tree should display only that node and its children.
Basically, the combo box serves as a filter to show only a specific node. All the nodes except from the selected one are hidden.
Any help will be appreciated.
Look up the filtering functionality in Ext JS API documentation. On the top-left “Find a Class” you get to filter the tree by an input string. I think what you want to do is quite similar to that:
http://dev.sencha.com/deploy/dev/docs/
Scroll down to filterTree function in:
http://dev.sencha.com/deploy/dev/docs/resources/docs.js