getCheckedRows(0) not detecting collapsed checkboxes


In my treegrid I am programmatically setting the checkboxes true to all the children if the parent’s checkbox is checked but the problem is when i try to get all the checked checkboxes through getCheckedRows(0) function it is not detecting the children’s checkboxes if it is in the collapsed state.If it is expanded then the function works fine.So what needs to be done here?

Thanks in advance

getCheckedRows iterates only through expanded rows, you can use code like

var checked = []; grid._h2.forEachChild(0, function(el){ if (grid.cells(, col_ind).getValue() != 0) checked.push(id); })

where col_ind - index of related column

thanks this helps me too :slight_smile: