DHTMLXGrid autoheight functionality is not working

Hi Team,

I am using DHTMLXGrid with Subgrid.
I have some data in grid.
Whenever I press + button for the subgrid an Ajax call goes for fetching required values.
When I insert response data in the subgrid scroll is coming for the main grid.
But I have set the autoheight property to true.

If I collapse the subgrid and again expand it then in that case autoheight functionality is working.
I am not getting why this random behavior is there for the grid. :question:

Please help me to solve this issue.

Thanks,
Ketan

Try to add following code to your grid:

grid.attachEvent(“onSubGridLoaded”, function(sub_grid_obj,rId,rInd){
sub_grid_obj.callEvent(“onGridReconstructed”,[]);
});

Hi Olga,

Tried with your solution.
Unfortunately its not working.

Still for the first time when subgrid is loaded scroll is coming. :frowning:

Thanks,
Ketan

Hi Team,

We have purchased licensed version.
Please help us to resolve this issue.

Thanks,
Ketan

Please open ticket at support@dhtmlx.com

I´m having the same issue,
Can anyone tell me how to solve this???

:frowning:

Please open ticket at support@dhtmlx.com