Resize RadEditor based on RadSplitter / RadPane size

4 posts, 0 answers
  1. Mike Matlosz
    Mike Matlosz avatar
    1 posts
    Member since:
    Mar 2010

    Posted 18 Mar 2010 Link to this post

    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
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 23 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 21 Dec 2011 Link to this post

    all the links result in error pages
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 21 Dec 2011 Link to this post

    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
Back to Top