I want to create a grid with subgrid and add row button for sub grid and parent grid . can you give a example
Please, try to use the addRow() method to add a new record to your grid.
In case of the subgrid you need to get the subgrid object at first:
and then you can add e new record to it:
let subgrid=grid.cells(i,j).getSubGrid(); subgrid.addRow("new_id","col1,col2,col3")