Why UltraWebGrid's vertical scrollbar didn't show when UltraWebGrid's height was over it that was I set UltraWebGrid's height. I set UltraWebGrid's height by js. The js code is below:
var h=document.documentElement.offsetHeight;
var uwg = igtbl_getGridById("UltraWebGrid1");
uwg.Element.style.height = (h-37)+"px";
Please help me, thanks
Instead of modifying the dom element for the grid, try using the grid's own resize function which will likely resize all the parts of the grid correctly...
// reference to the gridvar uwg = igtbl_getGridById("UltraWebGrid1");
// calculate the heightvar h = document.documentElement.offsetHeight - 37;
// calculate the width etc...you can likely just get the same value from the gridvar w = 500; // whatever...// resizeuwg.resize(w,h); // call the grid's resize function (accepts numbers in pixels)...
OR
If that is all too hard or doesn't work...set the grid to 100% height and 100% width (may need some tweaking) and put it in a DIV that is relatively positioned...then just change the size of the DIV in pixels...the grid should then grow or shrink to fill the DIV...hope that makes sense...
Think dtnixon's solution. I used div, the UltraWebGrid's vertical scrollbar display. But I used function resize, vertical scrollbar still didn't display.