I am trying to show my WebDataTree in a collapsed state on the first page load. Nothing I try seems to work like collapsing all nodes programatically etc. It always shows all nodes expanded the first time it is displayed. If I reload the tree on postback and collapse the nodes programatically it shows as desired.
Ok, I figured it out on my own.It seems I had InitialBindDepth set to "3" in the control markup. I set it to "-1" and now everything is as desired
Hello hogleg,
Thank you for writing in our forum.
I’m glad that you managed to resolve the issue. What I can add to your solution is that the initial value is “-1”. So if you need all of the nodes to be collapsed, you don’t have to change the inintialBindDepth or the initialExpandDepth.
In case you have further questions, don’t hesitate to contact us.
Best Regards, Marina Stoyanova, Software Developer, Infragistics, Inc.