Hello,
I just upgraded an older project from version 8.3 to 9.1. Now for some reason, suddenly all webtree controls are expanded fully, regardless of what the InitialExpandDepth property is set to (it's set to 0). I can't find any way of reversing this; I don't want the trees expanded initially! I'm really disappointed an upgrade effects my apps in such a way, I don't think it should.
How can I fix this problem?
Update: I tried adding a CollapseAll() call to the DataBound event of the tree (it's linked to a hierachical datasource); for some weird reason that collapses every node except the last one.
I'd met the same thing, before you use CollapseAll, you should set InitialExpandDepth value.
tree.InitialExpandDepth = 1; tree.CollapseAll();