Expand All/ Collapse All

2 posts, 0 answers
  1. Christian
    Christian avatar
    1 posts
    Member since:
    Sep 2012

    Posted 16 Oct 2014 Link to this post


    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.
  2. Alex Gyoshev
    Alex Gyoshev avatar
    2515 posts

    Posted 20 Oct 2014 Link to this post

    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.

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top