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

Resize RadEditor based on RadSplitter / RadPane size

3 Answers 83 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Mike Matlosz
Top achievements
Rank 1
Mike Matlosz asked on 18 Mar 2010, 08:20 PM
I am trying to take a page and create a RadEditor inside of a horizontal RadSplitter/RadPane at the bottom.  What I was wondering is if there is a way to resize the Editor dynamically with the resizing of the RadPane?  Here is some generic proof of concept code.

<telerik:RadSplitter runat="server" ID="RadSplitter1" ResizeMode="Proportional" LiveResize="true" Width="100%" Orientation="Horizontal" Height="100%">  
         <telerik:RadPane runat="server" ID="TopPane" Scrolling="Both" MinHeight="30" Width="100%">  
           <p>content...</p>        
         </telerik:RadPane>  
         <telerik:RadSplitBar runat="server" ID="RadSplitBar1" ResizeStep="10" Collapsemode="Both" />  
            <telerik:RadPane runat="server" ID="BottomPane" MinHeight="325" Height="325" Width="100%">  
                <telerik:RadEditor runat="server" ID="radedit" Height="100%" Width="99%" EnableResize="false" AutoResizeHeight="true">  
                    <Content>  
                    </Content>  
                </telerik:RadEditor>  
            </telerik:RadPane>  
        </telerik:RadSplitter>  

Thanks in advance,
Mike

3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 23 Mar 2010, 04:22 PM
Hi Mike Matlosz,
In order to achieve the described result, you have to handle the resized client event of the splitter pane that wraps the editor control and in the handler, set the height of the editor to the height of that pane.

For information on the client-side API of the splitter and editor, please refer to our online documentation:

All the best,
Tsvetie
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Erik
Top achievements
Rank 2
answered on 21 Dec 2011, 05:07 PM
all the links result in error pages
0
Dobromir
Telerik team
answered on 21 Dec 2011, 05:46 PM
Hi Erik,

Thank you for bringing this problem to our attention.

Here are the correct links to the articles that Tsvetie has pointed in her post:
http://www.telerik.com/help/aspnet-ajax/splitter-client-side-onclientresized.html
http://www.telerik.com/help/aspnet-ajax/splitter-client-side-radpane.html
http://www.telerik.com/help/aspnet-ajax/editor-setsize.html

Regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Splitter
Asked by
Mike Matlosz
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Erik
Top achievements
Rank 2
Dobromir
Telerik team
Share this question
or