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

Expand detail row

1 Answer 218 Views
Grid
This is a migrated thread and some comments may be shown as answers.
xion
Top achievements
Rank 1
xion asked on 17 Apr 2021, 10:56 AM

I have a problem expanding the detail row of the kendo grid. My grid is filled with 3 level data and sometime can be up to 4 level.

When I expand all the detail row in the grid, the last level's grid become shrink and I cant figured it out.

here is my code: https://dojo.telerik.com/UJAnAHAr

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 21 Apr 2021, 11:18 AM

Hi Xion,

 

Thank you for writing to us.

This solution is dedicated for 2 levels of Hierarchy:
https://docs.telerik.com/kendo-ui/knowledge-base/grid-how-to-expand-and-collapse-details-rows

In order to apply it for multiple more levels, you will need to modify this function to acquire the separate Grid on each level. Currently, it always accesses the main master grid:

        $('#expand').click(function (e)
         {
          var grid = $("#grid").data("kendoGrid");

Regards,
Eyup
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Tags
Grid
Asked by
xion
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or