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();
Happy birthday to me..... {Seriously NOT impressed....}
ANOTHER Year on and .. I've upgraded from 10.2 to 10.3 and now to 11.1
Why do I bother??
This problem STILL remains
I've added
Me.UltraWebTree1.InitialExpandDepth = 0 ' Close down the treeview...Me.UltraWebTree1.CollapseAll()
(and variations) to all the events in the UltraWebTree that vaguely seem appropriate... and still no joy.
There doesn't appear to be anything in the documentation that solves this.
It would be nice if the Infragistics team could deign to asnswer this one....
Amazing!
A year on and I get exactly the same behaviour after upgrading from CLR2 8.3 to CLR35 10.2 !!
i.e. the previously working UltrawebTree was 'naturally' collapsed... now it's fully expanded.....
I added
Me.UltraWebTree1.InitialExpandDepth = 0 ' Close down the treeview...
Me.UltraWebTree1.CollapseAll()
to the Databound handler and get {again} the same behaviour as the previous correspondent i.e all nodes collapse except the last, which fully expands.
any further ideas?