I have created a tree panel by specifying the xtype as treecolumn. I want to select the first leaf of the tree. In this example I have registered the boxready event detailed below:
boxready : function( treePanel, width, height, eOpts ){
treePanel.getSelectionModel().select( 0 );
//treePanel.select( treePanel.getRootNode().getChildAt(0) );
treePanel.getSelectionModel().selected = 0;
},
treePanel.getSelectionModel()
This example is giving me selectionmodel of type SINGLE. Can anyone explain why my example does not select the first leaf?