How to get checked rows id in a subgrid?


I am using grid with subgrid. In subgrid, i am using master_checkbox to manage check/uncheck functionality of the that column. Now i By clicking the master check box, it check/uncheck the entire column. Now i want get all the checked rows in an subgrid. How do i get checked row id from the subgrid?

Please help me.



You can get sub grid object using:

var sub=mygrid.cellById(rowId,cellInd).getSubGrid();

And then get checked rows:
var selected=sub.getCheckedRows(col_ind)