Hi.
I've tried setting a grid to 100% height. But whenever i do that, the scrollbars disappear and the grid is way to big for the frame it's placed inside. Actually it's placed inside a div, which is placed inside a frame.
Do I really have to handle the height size manually, this is very tedious?
Hello,
Can you please post the markup of the page?
Also, which browser are you experiencing this.
This is experienced in IE9. The program I'm handling right now has IE9 issues, so this has to work here. The same setup works just fine with a UltraWebGrid, but this grid does not work with IE9 (unless qirks mode is enabled).
Below is the page code. The grid itself is placed inside an usercontrol, which is added to panelGrid.
<%@ Page language="c#" Codebehind="MainTask.aspx.cs" AutoEventWireup="True" Inherits="Orion.WebForms.MainTask" %>
<%@ Register Assembly="Infragistics35.WebUI.UltraWebNavigator.v10.3, Version=10.3.20103.2120, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebNavigator" tagprefix="ignav" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD runat="server">
<title>MainTask</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="../main.css" type="text/css" rel="stylesheet">
<script language="JavaScript" src="../JavaScript/MainTask.js"></script>
<script>
var resizer;
function resizenow() // onresize="resizeend();"
{
window.document.fDoSomething.location.href = "DoSomething.aspx?action=ResizeMain&mainheight="+document.body.clientHeight+
"&mainwidth="+document.body.clientWidth+
"&width="+window.top.document.body.clientWidth+
"&height="+window.top.document.body.clientHeight;
}
function resizeend()
clearTimeout(resizer);
resizer = setTimeout('resizenow();', 500);
function init()
StartTimer();
</script>
</HEAD>
<body bottomMargin="0" leftMargin="0" topMargin="0" scroll="no" onload="StartTimer();"
onresize="resizeend();" rightMargin="0">
<form id="MainTask" method="post" runat="server">
<TABLE id="Table2" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD>
<DIV class="topBare" style="WIDTH: 100%; POSITION: relative; HEIGHT: 38px" ms_positioning="GridLayout">
<ignav:ultrawebmenu id="topMenu"
!content cut
</ignav:ultrawebmenu><asp:textbox id="TextBox1" style="Z-INDEX: 102; LEFT: 520px; POSITION: absolute; TOP: 0px" runat="server"
Height="20px" Width="256px" Visible="False"></asp:textbox></DIV>
</TD>
</TR>
<TR style="HEIGHT: 100%">
<TD vAlign="top">
<DIV id="panelGrid" runat="server" ms_positioning="FlowLayout">
</DIV>
<%-- <DIV id="DIV1" style="OVERFLOW: auto" runat="server" ms_positioning="FlowLayout">
--%> </TD>
</TABLE>
<INPUT id="SelectedTaskID" type="hidden" value="0" name="SelectedTaskID" runat="server" />
<script language="javascript">selectedTaskID = document.all('SelectedTaskID').value;</script>
<iframe style="VISIBILITY: hidden; WIDTH: 0px; HEIGHT: 0px" name="fDoSomething" src="about:blank"
frameBorder="1"></iframe>
</form>
</body>
</HTML>