Abirami
asked on 19 Jan 2024, 02:12 PM
| edited on 19 Jan 2024, 02:17 PM
Hello there,
I am trying to load the Gantt Chart - Tree List in expanded state by default. Is there a way to achieve this? Kindly advise. I am using the Telerik Blazor version 5.0.1. TIA
1 Answer, 1 is accepted
0
Nadezhda Tacheva
Telerik team
answered on 24 Jan 2024, 11:52 AM
Hi Abirami,
You can programmatically control the expanded state of the items through the Gantt state.
If you want to initialize the component with all items expanded, you can handle the OnStateInit event. You may create a state object and add all parent items from your data source to the ExpandedItems field. Then, pass that state to the State field of the OnStateInit event argument.
I hope this will help you move forward with the configuration on your end. Please let us know if any other questions appear.