Hi,
My requirement is to according to the browser resolutions the grid height should increase / decrease dynamically.
For this i am calling the following function
function fnResize() {
cht = document.body.clientHeight;
gridDiv = document.getElementById(‘gridbox’);
if (cht > 600) {
gridDiv.style.setExpression(“height”, cht*0.35);
}
}
But the grid height is not changing.
Please suggest some alternatives.
Thanks,
Sachin M
Just change your code as
if (cht > 600) {
gridDiv.style.setExpression(“height”, cht*0.35);
mygrid.setSize();
}
Where mygrid - reference to the grid object created in related container.
I verified dhtmlxGrid API there is no function called setSize()
mygrid.setSize();
Sorry for the inaccuracy, should be:
if (cht > 600) {
gridDiv.style.setExpression(“height”, cht*0.35);
mygrid.setSizes();
}