Is there a way to determine whether a node is expanding or collapsing when handling the NodeExpandedChanging event?
2 Answers, 1 is accepted
0
Accepted
Stefan
Telerik team
answered on 24 Feb 2014, 07:13 AM
Hello Paul,
Thank you for writing.
The NodeExpandedChanged event gets triggered when the expanded state of a node is changed, so you can check the e.Node.Expanded state and if it is true, this means that the node was not expanded and it now is. On the contrary, if is it false, this means that the node was expanded and not is it not.
Thanks. Not sure how I missed the Expanded property. Since I'm using the NodeExpandedChanging event, I just make sure Expanded is false to verity that the node is currently expanding.