Sep 02, 2009, 7:13 PM
Set Focus on TreeNode - URGENT
Hi,
Not able to set initial focus on a Tree Node.
I want to highlight a particular node when the Tree is loaded, but I did not find any selection property on the node.
I also tried to select the node in the render event, but it does not work:
Thanks,
Thilak
Not able to set initial focus on a Tree Node.
I want to highlight a particular node when the Tree is loaded, but I did not find any selection property on the node.
I also tried to select the node in the render event, but it does not work:
function onTreeRender(el) {
el.getSelectionModel().select(el.root.firstChild);
}
Really appreciate a solution at the earliest.Thanks,
Thilak