RadEditor's default height and width

4 posts, 0 answers
  1. Nick
    Nick avatar
    14 posts
    Member since:
    Aug 2008

    Posted 10 Sep 2008 Link to this post

    I am experiencing a problem with the RadEditor's default size -- it is very large and is distorting other elements on the page.

    To illustrate, i have a 400x400px web part zone on a page. This renders perfectly when the page is in "view" or "edit" mode, however when i select "Modify Shared Web Part", the Radeditor stretches the web part zone to approx 800px wide and 600px high, overlapping all corresponding page elements.

    I have tried setting the width of the RadEditor window to a fixed size (400x400px).  This fixes the auto-stretching issue (ie. it displays in a 400x400px space) however the RadEditor window then has scrollbars for all the added whitespace.

    Is there any way i can get the RadEditor to stretch to 100% of the web part zone without it adding all the superfluous whitespace?
  2. George
    Admin
    George avatar
    859 posts

    Posted 11 Sep 2008 Link to this post

    Hi Nick,

    Could you please open a support ticket and send me some screenshots (or a video) that demonstrate the problem? What happens when you set the desired width and height in the respective ConfigFile.xml e.g.
    <configuration> 
      ..............  
      <property name="ToolsWidth">400px</property>   
      <property name="Width">400px</property>   
      <property name="Height">400px</property>   
    </configuration> 

    I will review the details and do my best to provide a solution.
     
    Sincerely,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. debett
    debett avatar
    30 posts
    Member since:
    Feb 2007

    Posted 24 Aug 2009 Link to this post

    I have the latest controls. However, I am experiencing the same problem. Because I hape too many tools available, the control is being stretched to the width of the toolbar which does not go to the next line.

    <telerik:RadEditor ID="RadEditor1" runat="server" Height="200px" Width="300px" Skin="WebBlue" 
                                     Style="width: 300px" ToolsFile="~/RadResource/cs_sb_ed.xml" 

    ToolsWidth

     

    ="300px"

     

                                    Content='<%# Eval("Instruction") %>'>  
                                    <content></content>  
                                </telerik:RadEditor> 

    Setting toolsWidth does not help. .
  5. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 25 Aug 2009 Link to this post

    Hello debett,

    You will need to split the tools to separate toolbars. The editor will always try to fit all tools from a toolbar on a single line. So instead of
    <root>
        <tools>
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
    ...
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
        </tools>
    </root>

    you should reorganize the tools file to:

    <root>
        <tools>
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
        </tools>
        <tools>
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
        </tools>
        <tools>
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
            <tool name="..."/>
        </tools>
    </root>

    Regards,
    Lini
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top