Dhtmlx Grid and Accordion

HI.
I am using dhtmx grid in accordion and I have enabled auto height of grid. Grids are attached to accordion and i want to set the height of accordion items accordion to the size of active gird height. To do this i need the height of the grid. I have enabled multiple line in grid that’s why i cannot calculate the height of grid by counting the rows, as different rows has different heights. Please help me to get the exact height of gird.

Regards
Umair Tariq
Xeeonix Tech.