WebDataTree1.ClientEvents.NodePopulated = "WebDataTree_NodePopulated"
WebDataTree1.ClientEvents.NodePopulated = "WebDataTree_NodePopulated";
// The client event 'NodePopulated' takes two parameters sender and e // sender is the object which is raising the event // e is the DataTreeNodeEventArgs function WebDataTree_NodePopulated(sender, e) { //Gets the node object that is populated var node = e.getNode(); //Gets the text of the node var nodeText = node.get_text(); alert("Node '" + nodeText + "' populated!"); }