Hello.
I have my webgrid configured to display the vertical scrollbar. I want the height of the grid to take as much space available on the browser window. If there's no more room, the grid's vertical scrollbar kicks in to allow the user see all remaining rows in the grid.
The only way I can get that behavior is setting the grid's height to a fixed number (in px), but I want the height to adapt to the browser's height. If I set the grid's height to 100% the grid never uses the vertical scroll and all rows are displayed. As a result a vertical srollbar appears on my browser window. That's not what I need. I want the grid to adapt to the broswer's height, not the other way around.
Is there a way to achieve that behavior?
Thanks.
I found a way:
http://forums.infragistics.com/forums/p/9224/35935.aspx#35935
You can also try:
Enclose the grid in a div tag and set the height of div tag dynamically based on window size.
Set the following properties for the grid:
<FrameStyle Height="100%"../>
< /DisplayLayout>