I may be doing something wrong here but we use the Splitter for our screen layout. In any case we have a layout with a menu at the top and a footer at the bottom. In the middle is a content area and then above that a message area which would need to adjust based on how many user messages there are, but if there are none, not show up. In any case when you submit multiple times on the same page, the complete splitter continually shrinks for each submission. Here is a sample ASPX I put together to demonstrate the point. Simply run it and click the Test button and watch the splitter shrink.
I put all the code in the ASPX for clarity sake. Is this a bug or am I just doing something wrong here?
Thanks,
Shane
<%@ Page AutoEventWireup="true" Inherits="PlaygroundControl" Language="c#" Codebehind="PlaygroundPage.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
id
=
"Head1"
runat
=
"server"
>
<
title
>Playground Page</
title
>
<
style
type
=
"text/css"
>
.ie7ScrollFix { position:relative; }
html, body, form
{ font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin:0px;
padding:0px;
width: 100%;
height: 100%;
border-style: none;
background-color: #FFFFFF;
color: #000000;
overflow:hidden;
z-index:0;
border-collapse: collapse;
}
</
style
>
</
head
>
<
body
class
=
"BODY"
>
<
form
id
=
"test"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"supportScripts"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<% // Code block could be moved to load event but here right now
RadPane msgPane = RadSplitterMaster.GetPaneById("messagePane");
int rowCount = 2;
msgPane.SetExpandedSize(Unit.Pixel(rowCount > 0?rowCount*15:0));
msgPane.Height = Unit.Pixel(rowCount > 0 ? rowCount * 15 : 0);
msgPane.Collapsed = (rowCount > 0 ? false : true);
%>
<
telerik:RadSplitter
ID
=
"RadSplitterMaster"
runat
=
"server"
Height
=
"100%"
Width
=
"100%"
VisibleDuringInit
=
"false"
ClientIDMode
=
"Predictable"
ResizeMode
=
"AdjacentPane"
ResizeWithBrowserWindow
=
"true"
ResizeWithParentPane
=
"true"
Orientation
=
"Horizontal"
BorderStyle
=
"Solid"
BorderSize
=
"3"
>
<
telerik:RadPane
ID
=
"headerPane"
runat
=
"server"
Height
=
"52px"
Scrolling
=
"None"
Locked
=
"true"
BackColor
=
"Blue"
>
Menu Stuff <
br
/>
Here
</
telerik:RadPane
>
<
telerik:RadPane
ID
=
"messagePane"
runat
=
"server"
Scrolling
=
"None"
BackColor
=
"Orange"
>
Random stuff here<
br
/>
With lines and such<
br
/>
</
telerik:RadPane
>
<
telerik:RadPane
ID
=
"contentPane"
runat
=
"server"
Scrolling
=
"Both"
BackColor
=
"White"
>
<
input
type
=
"submit"
value
=
"Click to Test"
/>
<
div
>Put in full content regardless of size</
div
>
</
telerik:RadPane
>
<
telerik:RadPane
ID
=
"footerPane"
runat
=
"server"
Height
=
"12px"
Locked
=
"true"
BackColor
=
"Green"
>
<
div
id
=
"footerDiv"
>
<
asp:HyperLink
ID
=
"HyperLink1"
runat
=
"server"
NavigateUrl
=
"~/LicenseAgreement.htm"
>
<
b
><
font
size
=
"-2"
color
=
"white"
>©My Company Stuff</
font
></
b
>
</
asp:HyperLink
>
</
div
>
</
telerik:RadPane
>
</
telerik:RadSplitter
>
</
form
>
</
body
>
</
html
>
Thanks,
Shane