WebDataTree1.ClientEvents.ActivationChanged = "WebDataTree_ActivationChanged"
WebDataTree1.ClientEvents.ActivationChanged = "WebDataTree_ActivationChanged";
// The client event 'ActivationChanged' takes two parameters sender and e // sender is the object which is raising the event // e is the DataTreeActivationEventArgs function WebDataTree_ActivationChanged(sender, e) { //Gets the new active Node object var newActiveNode = e.getNewActiveNode(); //Gets the text of the new active node var newNodeText = newActiveNode.get_text(); window.status = "New Active Node : " + newNodeText; }