10 Jul 2012 2:45 AM #1
Unanswered: error on getSelectedNode() on Ext.tree.Panel - extjs-4.1.0 lib
var tree = Ext.getCmp("menu-tree");
var selectedNode = tree.getSelectionModel().getSelectedNode();
i am getting error on 2nd line.
'Error: Object doesn't support property or method 'getSelectedNode''
here, I'm trying to get the current selected node of tree.
10 Jul 2012 4:09 AM #2
- Join Date
- May 2012
- Vote Rating
Try the code given below:
var tree = Ext.getCmp("menu-tree"); var selectedNode = tree.getSelectionModel().getLastSelected();sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.