Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vikram Jagannathan on Feb 02, 2009 06:56
open dhtmlx forum
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.
Answer posted by Support on Feb 02, 2009 07:55
There is no such event in original codebase, but you can use updated version
Can be taken from here - http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=7541&ssr=yes&s=onSubRowOpen

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