New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Mutually Exclusive Scenarios

MultipleSelect and NodeClick server event.

If you enable multiple select of the TreeView the user can use the Ctrl or Shift buttons to select multiple nodes. While holding the Ctrl or Shift keys and selecting nodes the NodeClick server event does not fire. This is by design, otherwise it would fire after the first click on the first node and the user will not be able to select another node. The client-side events OnClientNodeClicking and OnClientNodeClicked do fire for every clicked node.

AllowNodeEditing and NodeClick server event.

If you enable node editing and also subscribe to the NodeClick event, when you try to edit a node by double clicking - it postbacks and fires the NodeClick event instead of entering the edit mode. This is because the browser fires first the click() and then the doubleclick() events. When the click() event fires - the TreeView postbacks and the NodeClick is fired. The TreeView does not know that the doubleclick event is fired after that. The solution is to tab to the TreeView, use the keyboard to select the needed node and click it once to enter the edit mode.

NodeClick and OnClientDoubleClick

If you subscribe to the NodeClick server event and the client OnClientDoubleClick the latter will not fire for the reasons described in p.2 : the browser fires first the click() and then the doubleclick() methods. Having subscribed to the NodeClick event will postback after the click() event is received from browser.

See Also

In this article