I have a WebGrid that has its width and height set to 100%, so that when the window is resized ideally the webgrid would resize to fit.
This works for the width perfectly, as I make the window smaller the WebGrid's width is equally reduced and the scroll bar appears along the bottom of the WebGrid.
This does not work for the height, the height stays fixed, so as I make the window smaller I get a scroll bar on the window, instead of the WebGrid's height reducing and adding the scroll bar IN the WebGrid.
any help is appreciated! I dont know if there is a setting somewhere I need to set to get this to work.
the maxHieght property works only for IE7, mozilla 2.0 and above and doesnt work for IE6.
I currently have the following solution impelemnted which works for all these browsers.
grid.resize(grid.MainGrid.offsetParent.offsetWidth - 4, gridHeight)