ASPxTreeList does not provide a method to determine the node level on the client side. This example demonstrates how to use the ASPxTreeList JSProperties to create this functionality.
In this example, ASPxTreeList ClientSide Event “NodeClick” is handled to redirect the page if a level-2 node is clicked. The new page shows the NodeKey of the node that is clicked.
See also:
ASPxTreeList - How to get node level on client-side events using HTML attributes