Dynamically Expand Subgrid in a loop - JQGrid
I have Grid with a subgrid using subGridRowExpanded. And I want to dynamically expand some rows of the grid so I wrote following in GridComplete Event of First Grid. ids is array of row ids of my Grid for(int i =0; i< ids.length; i++) { //Checking with condition $("#myGridName").expandSubGridRow(ids[i]); } I also tried with following code, But for some reason checkboxes in GridComplete of second level, is added only for last expanded row. $("#myGridName").expandSubGridRow(ids[0]); $("#myGridName").expandSubGridRow(ids[1]); Above code expands appropriate rows. But, In GridComplete event of