This example demonstrates how to use the ASPxClientTreelist.GetFocusedNodeKey method to expand and collapse tree nodes based on the state of a node (“Collapsed” or “Expanded”). You can get the node state by calling the ASPxClientTreeList.GetNodeState(NodeKey)) method in the client-side FocusedNodeChanged event.
Demo limitation: if you close the topmost parent node and do not have other nodes except that one, you will have to expand this node by clicking the “expand” icon.