This is the code i used
var gridID;
gridID = gridName;
setGridHeight();
}
var grid = igtbl_getGridById(gridID);
grid.resize(750, myHeight);
var myWidth = 0, myHeight = 0;
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
This seems to work for grid containing few rows, but if the number of rows exceeds even 20, the height of the grid turns out to be greater than the height of the browser.
Why isn't this working and is there any other way for me to do what i need? Any help will be appreciated.
Thank you,
Thanks for the links.I used those forums to get an idea of how to resize the grid size depending on the window size.
My problem is that it doesn't seem to work for grids containing a lot of rows (10 or more). Why is that? I'm unable to fix it.
Please help!
The following forum posts provides some additional information and sample code that can be useful in your case as well
http://forums.infragistics.com/forums/p/9224/36093.aspx#36093
This may also be related and helpful:
http://forums.infragistics.com/forums/p/2726/16560.aspx#16560
Hope this help.
This may help - we found the doctype created by VS 2005 by default was messing up our grids. We use this one instead from VS 2003:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Hope this helps.