This is a migrated thread and some comments may be shown as answers.

How set Height Offset property

1 Answer 132 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Guna
Top achievements
Rank 1
Guna asked on 06 Feb 2009, 12:52 PM

How set Height Offset property nested Horizontal and vertical radspiltters?



<
telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%" Orientation="Horizontal" SplitBarsSize="2" HeightOffset="????">

<telerik:RadPane ID="TopPane" runat="server" Height="72" MinHeight="72" MaxHeight="120">

</telerik:RadPane>

 

<telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="None"/>

<telerik:RadPane ID="MainPane" runat="server" Scrolling="none" MinWidth="500">

<telerik:RadSplitter ID="NestedSplitter" runat="server"

SplitBarsSize="8" HeightOffset="??????"  VisibleDuringInit="false">

<telerik:RadPane ID="LeftPane" runat="server" Width="220">

<telerik:RadSplitter ID="RadSplitter2" runat="server" Orientation="Horizontal" SplitBarsSize="8" HeightOffset="??????" >

<telerik:RadPane ID="RadPane1" runat="server" Height="75%" Width="100%">

 

</telerik:RadPane>

<telerik:RadSplitBar ID="RadSplitbar2" runat="server" CollapseMode="Backward"

></telerik:RadSplitBar>

<telerik:RadPane ID="bottomPane" runat="server" Height="25%" Width="100%" >

</telerik:RadPane>

</telerik:RadSplitter>

</telerik:RadPane>

<telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward"/>

<telerik:RadPane ID="ContentPane" runat="server">

<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

 

 

</asp:ContentPlaceHolder>

</telerik:RadPane>

</telerik:RadSplitter>

</telerik:RadPane>

</telerik:RadSplitter>

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 09 Feb 2009, 07:52 AM
Hi Guna,
Please refer to our Making RadSplitter occupy part of a page with variable size online article for information about the HeightOffset property.

Regarding setting the HeightOffset property of a nested RadSplitter, you have to set the following properties to that splitter:
  1. ResizeWithParentPane=false
  2. Width=100%
  3. Height=100%
  4. HeightOffset=200 (for example)
You have to set ResizeWithParentPane=false, because the default value of this property is "true". This means that the nested RadSplitter becomes as high and as wide as its parent RadPane and resizes with it. That is why, by default, the nested RadSplitter does not respect the HeightOffset property.

All the best,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Splitter
Asked by
Guna
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or