Resizeing in MasterPage layout
New DiscussionThe WebSplitter is not resizing correctly in a Master Page layout. I want the WebSplitter to take up full height and width of the content area but it does not. It does not resize at all. Here is the code using a MasterPage layout:
<%@ Page Title=”” Language=”vb” AutoEventWireup=”false” MasterPageFile=”~/Site.Master”
CodeBehind=”UserMgt.aspx.vb” Inherits=”NP2000.UserMgt” %>
<%@ Register Assembly=”Infragistics35.Web.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb”
Namespace=”Infragistics.Web.UI.LayoutControls” TagPrefix=”ig” %>
<asp:Content ID=”Content1″ ContentPlaceHolderID=”HeadContent” runat=”server”>
<style type=”text/css”>
html, body, form, .tallElement
{
height: 100%;
}
</style>
</asp:Content>
<asp:Content ID=”Content2″ ContentPlaceHolderID=”MainContent” runat=”server”>
<ig:WebSplitter ID=”WebSplitter1″ runat=”server” DynamicResize=”True” Height=”100%”
Width=”100%” CssClass=”tallElement”>
<Panes>
<ig:SplitterPane runat=”server”>
</ig:SplitterPane>
<ig:SplitterPane runat=”server”>
</ig:SplitterPane>
</Panes>
</ig:WebSplitter>
<asp:ScriptManager ID=”ScriptManager1″ runat=”server”>
</asp:ScriptManager>
</asp:Content>
Here is the same code NOT using a MasterPage layout. As you can see the splitter code is exactly the same, but the effect is totally different.
<%@ Page Language=”vb” AutoEventWireup=”false” CodeBehind=”WebForm1.aspx.vb” Inherits=”NP2000.WebForm1″ %>
<%@ Register Assembly=”Infragistics35.Web.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb”
Namespace=”Infragistics.Web.UI.LayoutControls” TagPrefix=”ig” %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head runat=”server”>
<title></title>
<style type=”text/css”>
html, body, form, .tallElement
{
height: 100%;
}
</style>
</head>
<body>
<form id=”form1″ runat=”server”>
<ig:WebSplitter ID=”WebSplitter1″ runat=”server” DynamicResize=”True” Height=”100%”
Width=”100%” CssClass=”tallElement”>
<Panes>
<ig:SplitterPane runat=”server”>
</ig:SplitterPane>
<ig:SplitterPane runat=”server”>
</ig:SplitterPane>
</Panes>
</ig:WebSplitter>
<asp:ScriptManager ID=”ScriptManager1″ runat=”server”>
</asp:ScriptManager> </form>
</body>
</html>