When I resize the window, this code is not resizing the grid


 window.onresize=fnResize;
function fnResize() {
   cht = document.body.clientHeight;   
   gridDiv = document.getElementById(‘gridbox’);
   if (cht > 600) {
            gridDiv.style.setExpression(“height”, cht0.35);                
             mygrid.setSize(cht
0.35);
   } 
}

Please check attached sample.
1228700826.zip (92.5 KB)