tcoates Posted May 11, 2017 Posted May 11, 2017 In our program we have a treeview (TUniTreeview) and the contents of which are added when the program loads.... tempNode2 := NavTree.Items.Add(nil, 'Recordings'); tempNode2.ImageIndex := 1; tempNode2.SelectedIndex := 1; but ... only want certain nodes in the treeview to appear in expanded form, but not others when the page is initially displayed to the user. ie .. I tried something like... NavTree.Items[1].Expand(True) but that did not work. Can someone give me a hand on what to do here? Thanks. Quote
Sherzod Posted May 12, 2017 Posted May 12, 2017 Hi, In our program we have a treeview (TUniTreeview) and the contents of which are added when the program loads.... Can you make a simple testcase for this?! Best regards, Quote
tcoates Posted May 12, 2017 Author Posted May 12, 2017 Attached demo program. The demo program I created as built in steps. First I populate the treeview via button onclick event, and ti worked as expected. Then I added code to populate treeview during the form create event and that is when node 'B' does not expand. TestTreeView1.zip Quote
Jean-Marc Kiener Posted May 12, 2017 Posted May 12, 2017 See: http://forums.unigui.com/index.php?/topic/7548-tunitreeview/ Quote
allenchow Posted September 26, 2017 Posted September 26, 2017 Only one item can be expanded inside a timer. Quote
allenchow Posted October 11, 2017 Posted October 11, 2017 I mean you can't expand more than one node inside a timer event 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.