Can someone help me? i want to expand some nodes in the TreeListView. (Not all nodes!)
For Example: Some Nodes should have AutoExpand. (e.g. the first 2 Levels)
I couldn't find a way. i only found the method ExpandAll().
But this is to much for me. :-(.
i searched in the TreeListView, OLVListItem classes. But i didn't find something.
or is it possible the the my object modell can decide which nodes should expand?
I hope someone can give me an hint.
Regards
Stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Can someone help me? i want to expand some nodes in the TreeListView. (Not all nodes!)
For Example: Some Nodes should have AutoExpand. (e.g. the first 2 Levels)
I couldn't find a way. i only found the method ExpandAll().
But this is to much for me. :-(.
i searched in the TreeListView, OLVListItem classes. But i didn't find something.
or is it possible the the my object modell can decide which nodes should expand?
I hope someone can give me an hint.
Regards
Stefan
Just call
Expand()
for each model in turn.Make a List<> of the model objects you wish to have in an expanded state and set the list to the TreeListView's ExpandedObjects property...
If you wish to keep objects expanded that already were, previous to the call, just replace...
...with...
Last edit: Michael 2016-12-19