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

Splitter Resizing automatically

1 Answer 74 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
ewart
Top achievements
Rank 1
ewart asked on 14 May 2008, 11:40 PM

Any ideas why my splitter is resizing automatically?

if   Collapsed="false"  on rpSearch below, then the splitter opens with 50% size shared between each pane.  Perfect!

if  Collapsed="true"  is set, then when I expand it, I expect it to expand to 50% automatically but it expands to some arbitary amount.  how can I make it expand to 50%?

regards
ewart

.fmMaxHeight  
        {  
            padding: 0px 0px 0px 0px;  
            /*margin: 0px 0px 0px 0px;*/  
            margin: 0 auto;  
            border-collapse: separate;  
            height: 100%;  
            overflow: hidden;  
        }  
          
 
 
 <telerik:RadSplitter ID="rsLeft" runat="server" Width="100%" Height="100%" Skin="Web20" > 
     <telerik:RadPane ID="rpMenu" runat="server" Width="200" Height="100%">  
stuff     
     </telerik:RadPane> 
     <telerik:RadSplitBar ID="sbCollapseLeft" runat="server" CollapseMode="Forward" EnableResize="false"></telerik:RadSplitBar> 
     <telerik:RadPane ID="rpContent" runat="server" Scrolling="None">  
         <telerik:RadSplitter ID="rsTop" runat="server" Orientation="Horizontal" CssClass="fmMaxHeight" Skin="Web20">  
             <telerik:RadPane ID="rpSearch" runat="server" ContentUrl="Browse.aspx" CssClass="fmMaxHeight" Height="50%" Collapsed="true" 
                 Scrolling="Y">                
             </telerik:RadPane> 
             <telerik:RadSplitBar ID="sbCollapseTop" runat="server" CollapseMode="Forward"></telerik:RadSplitBar> 
             <telerik:RadPane ID="rpThings" runat="server" CssClass="fmMaxHeight" Height="50%" > 
things  
             </telerik:RadPane> 
         </telerik:RadSplitter> 
     </telerik:RadPane> 
 </telerik:RadSplitter> 

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 17 May 2008, 02:26 PM
Hello ewart,

The reason for the problem is that at the beginning the RadSplitter takes its default size and the RadPane gets Collapsed. After that the RadSplitter resizes itself and the Collapsed pane does not react on this. When you expand it again it still keeps its old sizes.

The RadSplitter resizing is optimized in the last version of the control - SP1 which was released yesterday. I suggest to upgrade to it - I tested the scenario and it worked as expected.



Greetings,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Splitter
Asked by
ewart
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or