How would I go about setting a node selected through javascript?
I tried to use: lastNode.set_selected = true; , but that does not set it to be selected.
Hi, rzwirtz. Thank you for posting in the community.
I suggest that you set the selection type first. You can read about WebDataTree node selection types here - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.1/CLR4.0/html/WebDataTree_Node_Selection.html. Then you can handle one of WebDataTree's client-side events, such as nodeClick
function NodeClickedHandler(sender, args) {
$util.findControl("WebDataTree1").set_selectionType(1);
args.getNode().set_selected(true);
}
This will set the clicked node’s ‘selected’ property to true.
Please let me know if this helps.