I don’t find this method in suite 7.0 I need to view all rows in grid without vertical scrollbars.
Is it possible? If I don’t set grid height I don’t see the grid. Is it normal?
I don’t find this method in suite 7.0 I need to view all rows in grid without vertical scrollbars.
Is it possible?
Unfortunaetly there is no autoHeight mode in the dhtmlxGrid 7.
If I don’t set grid height I don’t see the grid. Is it normal?
Yes, this is normal. The same behavior was in the dhtmlxGrid 5.
Please, try to define the height for your grid container.
I solved this problem in this way.
My goal is to view the grid full height, with no vertical-scrollbars.
If the grid (var myGrid) is contained in a div with id=gridCnt, after I show the grid I call a function (usally with a settimeout) with this code inside:
function adjustGridH()
{
var div = document.getElementById(‘gridCnt’);
var div2=div.getElementsByClassName(“dhx_grid-body”)[0];
var myH=div2.scrollHeight;
//using jquery to set height
$(’#gridCnt’).height(myH);
$('gridCnt).find(".dhx_grid-body").height(myH);
$('gridCnt).find(".dhx_grid-content").height(myH);
myGrid.config.height=myH;
}
You may try to use the awaitRedraw instead of the timeout:
https://docs.dhtmlx.com/suite/helpers__await_redraw.html