Subgrid events.

Hi,



How do we capture the subgrid from the parent grid and will we be able to invoke Grid API methods, e.g. If we are intrested in checking what has been edited in subgrid? and whether to commit them at backend or not?



e.g. getChangedRows() etc.

You can get the subgrid object by
    grid.cells(i,j).getSubGrid();
where i,j - coordinates of sub_row_grid cell

The grid provides onSubGridCreated event which can be used to attach custom events to sub grid

    grid.attachEvent(“onSubGridCreated”,function(subgrid){
       subgrid.attachEvent(“onEditCell”,function(){
             //any custom code here
        })
    });

dhtmlx.com/docs/products/dhtmlxG … excellsapi