I have a button “Add Row” on main grid row. on click i need to add row in the subgrid of that particular row.
How to get it done?
I have a button “Add Row” on main grid row. on click i need to add row in the subgrid of that particular row.
How to get it done?
i come up with the following code
if the subgrid is already opened/expanded by clicking the plus(+) sign the following code works fine without line no.1
Below code is given to open the subgrid manually and add a row
I added line no.1 to manually open the subgrid and immediately add row.
but the subgrid opens with headers only and no rows shown.
please help
Unfortunately you need to use the onSubgridLoaded event to control when the subgrid is actually opened and it’s content is inited:
grid.attachEvent(“onSubGridLoaded”,function(subgrid,row_id,col_ind){
});