WebDataTree1.ClientEvents.SelectionChanged = "WebDataTree_SelectionChanged"
WebDataTree1.ClientEvents.SelectionChanged = "WebDataTree_SelectionChanged";
// The client event 'SelectionChanged' takes two parameters sender and e // sender is the object which is raising the event // e is the DataTreeSelectionEventArgs function WebDataTree_SelectionChanged(sender, e) { //Get thre newly selected tree nodes array var newSelectedNodes = e.getNewSelectedNodes(); //Gets the text of the node at index 0 in the array var nodeText = newSelectedNodes[0].get_text(); window.status = "Newly Selected node :" + nodeText; }