WebDataTree1.ClientEvents.CheckBoxSelectionChanged = "WebDataTree_CheckBoxSelectionChanged"
WebDataTree1.ClientEvents.CheckBoxSelectionChanged = "WebDataTree_CheckBoxSelectionChanged";
// The client event 'NodeChecking' takes two parameters sender and e // sender is the object which is raising the event // e is the DataTreeSelectionEventArgs function WebDataTree_CheckBoxSelectionChanged(sender, e) { var str = ""; //Get thre newly selected tree nodes array var newCheckedNodes = e.getNewCheckedNodes(); var countCheckedNodes = newCheckedNodes.length; for (var i = 0; i < countCheckedNodes; i++) { //Gets the text of the node at index i in the array var nodeText = newCheckedNodes[i].get_text(); str = str + " " + nodeText; } window.status = "Newly Checked node :" + str; }