attach custom event on subgrid expand collapse

Hi,



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



Thanks.

There is no such event in original codebase, but you can use updated version
Can be taken from here - dhtmlx.com/docs/products/kb/inde … SubRowOpen

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

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