Search code examples
kendo-uigridhierarchical

Kendo hierarchical Grid, open first opened detailgrid in group


In my example, http://dojo.telerik.com/UVoSUl/11 I would like to open the first open row. In this example, Group B, Company 5. I would like to expand Company 5 with expandRow(). Your help would be very happy.


Solution

  • In the case of the example, Company 5 is the first row with class of k-master-row that is visible. So you could use the jQuery :visible selector to get the row and then expand it:

    this.expandRow($("tr.k-master-row:visible").eq(0));
    

    Updated DOJO