Check all child rows when parent row is checked in Hierarchical Grid

2 posts, 0 answers
  1. Sanjay
    Sanjay avatar
    10 posts
    Member since:
    Nov 2015

    Posted 28 Jul 2016 Link to this post



    I am using Hierarchical Grid with checkbox. I want to check all child records when parent row.

    From parent Grid, I got checked employeeID and then retrieving the child grid.

           var childGrid= $("#childGrid"+employeeID).data("kendoGrid");
           var checkboxItems=childGrid.items().filter(":has(input:checkbox)");



    But its not working. Appreciate any help.




  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2213 posts

    Posted 29 Jul 2016 Link to this post

    Hello Sanjay,

    The above code filters the rows that have checkboxes in them, but the checkboxItems collections still holds to rows (not the checkboxes). You should retrieve the checkbox elements inside the rows and then set the checked property.

    Dimiter Madjarov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top