Frederick Posted March 15, 2023 Share Posted March 15, 2023 Let's say I have the following tree view structure:- Main Node 1 - Sub Node 11 - Sub Node 12 Main Node 2 - Sub Node 21 - Sub Node 22 Currently, when I click main node 1, it opens to show the sub nodes 11 and 12. When I click main node 2, it also opens to show sub nodes 21 and 22. However, main node 1 remains opened. How do I, when I click main node 2, cause main node 1 to close? In other words, there can only be one main node opened at any one time. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1565) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15, 2023 Share Posted March 15, 2023 Hello @Frederick Use this config: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniTreeView1.JSInterface.JSConfig('singleExpand', [True]); end; 1 Quote Link to comment Share on other sites More sharing options...
Frederick Posted March 15, 2023 Author Share Posted March 15, 2023 Thank you Quote Link to comment Share on other sites More sharing options...
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.