This is a migrated thread and some comments may be shown as answers.

Expand All/ Collapse All

1 Answer 125 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 16 Oct 2014, 05:49 PM
Hello,

Is there a better way to set all parent tasks to have expanded set to true?
Currently, I'm clearing the content of my div and rebinding everything again with the expanded property to true.

Greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 20 Oct 2014, 02:03 PM
Hello Christian,

You can define the expanded field to be true in the dataSource.schema.model, like this:

schema: {
    model: {
        expanded: true
    }
}

See this Dojo snippet for a demo.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Gantt
Asked by
Christian
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or