hi all,
please suggest for how can i select one tree-node by clicking of some other button.
i have key of then node. let me known if there is any method y which i can select the node again passing the key-value.
my tree is outlook view.
regardskartikeya Sharma
thanks brian..
i got it but you suggest any best way..
DefaultTree:ActiveNode = DefaultTree:GetNodeByKey(pcKey).
i written like taht for select node as per your suggested.
pcKey = local variable.IF objTimeSheet:DefaultTree:GetNodeByKey(pcKey) <> ? THENDO: DefaultTree:GetNodeByKey(pcKey):RootNode:ExpandAll(). DefaultTree:GetNodeByKey(pcKey):Selected = TRUE. DefaultTree:FOCUS().END.
please sugges one more thing how to focus to selected node..
how to change focus red oval to selected node..
You can use GetNodeByKey to get a reference to the node, expand its root node, and set its Selected property to true:
UltraTreeNode node = this.ultraTree1.GetNodeByKey( "testing" );if ( node != null ){ node.RootNode.ExpandAll(); node.Selected = true;}