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

RadEditor's default height and width

3 Answers 201 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 10 Sep 2008, 07:57 AM
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?

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 11 Sep 2008, 11:12 AM
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.
0
debett
Top achievements
Rank 1
answered on 24 Aug 2009, 04:44 PM
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. .
0
Lini
Telerik team
answered on 25 Aug 2009, 09:47 AM
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.
Tags
Editor
Asked by
Nick
Top achievements
Rank 1
Answers by
George
Telerik team
debett
Top achievements
Rank 1
Lini
Telerik team
Share this question
or