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; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2