How to auto-expand all Detail Rows in a Kendo Grid?

3 posts, 1 answers
  1. Landon
    Landon avatar
    66 posts
    Member since:
    Nov 2010

    Posted 11 Jun 2013 Link to this post

    Hi,

    Is it possible to automatically expand every Detail Row in a Kendo Grid with jQuery? I've seen some demo's regarding expansion but they only apply to single-rows. Is it possible to expand everything at once? 

    Thanks,
    Landon

  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    1641 posts

    Posted 12 Jun 2013 Link to this post

    Hello Landon,


    Yes this is possible to be achieved. The expandRow method of the Grid accepts a single row or a collection of rows as a parameter, so you could pass all master rows.
    E.g.

    dataBound: function() {
        this.expandRow(this.tbody.find("tr.k-master-row"));
    }

    I wish you a great day!

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

  3. Landon
    Landon avatar
    66 posts
    Member since:
    Nov 2010

    Posted 12 Jun 2013 Link to this post

    This worked perfect! - Thanks for the help.

    Landon

Back to Top