how to programmatically expand a treegroup? I am able to load the subnodes of a group programmatically, but not able to set the group to “expanded”; so the group already contains the data but the user doesn’t see those unless he manually clicks on the icon to expand the group
You can easily expand a treegroup using the expanded property or by using the expandItem Method (have a look at the API here)
In the demo below, you can see an example of a programmatically expanded treegroup (“Attractions”) and a group expanded by the expanded property(“Dining”): demo of expanded
If you have any other questions, please do not hesitate to contact us again!
Best regards,
Ivan Peevski
Smart UI Team https://www.htmlelements.com/