07-21-2020 03:55 AM
I'm using a tree control to display results from a database search among several tables, where each table is named in Indent level 0 in tree, and the search results at level 1. When I do the search, the tree is expanded automatically, which gets rather big because of hundreds of lines at level 1, and I want to expand each Item at my own will. Now I need to scroll down and close level 1 manually before doing that. I wonder if there is a property/setting to NOT expand indent levels when a Tree is written to? I've tried Active Item->Open? property to False, but it is still expanded. Is there a way to fix this issue?
Regards
Bård B
Solved! Go to Solution.
07-21-2020 08:06 AM
Use an invoke node. You can either use the "Open/Close:Item" method after adding each item, or you can use the "Open/Close:All" after the tree is filled.
07-21-2020 11:05 AM
I also suggest calling the Defer Panel Updates property of the Panel class before/after every tree update, it will make your UI more responsive.
07-22-2020 08:09 AM
That did the trick!
Thanks for the help, guys!
07-22-2020 09:31 AM
What specifically did the trick? Defer front panel updates, or the suggestion about the Close item?