attach custom event on subgrid expand collapse


How to attach a custom event to a subgrid to capture when it is expanded or collapsed. I need to pass the following parameters to the event function.

1) rowid of the parent grid that contains the subgrid

2) parent grid object

3) subgrid object


There is no such event in original codebase, but you can use updated version
Can be taken from here - … SubRowOpen

onSubRowOpen event called each time when row opened|closed
- row id
- state ( true|false - open|close)

this - points to the parent grid
this.cells(id,ind).getSubGrid() - subgrid object