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,
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.
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.