Expand all the child rows in Blazor Gantt Chart grid by default

1 Answer 201 Views
Gantt
Abirami
Top achievements
Rank 1
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

Sort by
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.

Regards,
Nadezhda Tacheva
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
Gantt
Asked by
Abirami
Top achievements
Rank 1
Answers by
Nadezhda Tacheva
Telerik team
Share this question
or