david_navigator Posted May 7, 2018 Posted May 7, 2018 Let's imagine I have a tree view - The World, then Continents, then countries, then towns - example belowThe World --Europe ----France -------Paris ----England -------London -------Manchester ----Spain --Asia -----China -----Malysia -----Thailand --North America -----Texas -----Florida --South America --Australasia --Antarctica however when the tree view is first presented to the user, I want just the first two levels expanded and the rest collapsed e.g The World [+]Europe [+]Asia [+]North America [+]South America [+]Australasia [+]Antarctica Is there an inbuilt method to do this, or is it a case of iterating through the nodes and expanding the appropriate one ? If the later - how do I do that - I can't see anything like a TUniTreeNode.expand method ? Thanks David (Version 1.0.2.1450 Trial) Quote
Sherzod Posted May 7, 2018 Posted May 7, 2018 Hi, You can use Expanded property of TUniTreeNode Quote
david_navigator Posted May 7, 2018 Author Posted May 7, 2018 Brilliant. Many thanks. Easy when you know how Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.