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

    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.
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 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.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top