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

Removing tool Bar in RadEditor in Preview Mode?

3 Answers 121 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bhuvan
Top achievements
Rank 1
Bhuvan asked on 04 Mar 2011, 06:21 AM
Hi i had a RadEditor in Preview Mode. I dont want to display the tool bar but i am not able to do this? How to acheive this?

 <telerik:RadEditor ID="RdEditor_MessageContent" Runat="server" Width="95%" Height="190" EditModes="Preview">
        <Tools>
                <telerik:EditorToolGroup>
                </telerik:EditorToolGroup>
        </Tools>    
</telerik:RadEditor>

I tried like above but it is displaying the tool bar strip ..how to do this?

3 Answers, 1 is accepted

Sort by
0
Bhuvan
Top achievements
Rank 1
answered on 05 Mar 2011, 12:04 PM
any body please help me regarding this
0
Accepted
Marin Bratanov
Telerik team
answered on 09 Mar 2011, 03:48 PM

Hello Bhuvan,

The toolbars of the editor cannot be entirely removed as they are an integral part of its functionality.

In your case the best solution is to just add one button in the Bottom dockingZone as this zone is not displayed in the Preview mode.

You can do this programatically at page load:

EditorToolGroup toolgroupLeft = new EditorToolGroup();
toolgroupLeft.Attributes["DockingZone"] = "Bottom";
editor1.Tools.Add(toolgroupLeft);

or use an equivalent in the RadEditor declaration, for example:

<Tools>
    <telerik:EditorToolGroup name="invisibleToolbar" dockingZone="Bottom">
    </telerik:EditorToolGroup>
</Tools>

Regards,
Marin
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Bhuvan
Top achievements
Rank 1
answered on 11 Mar 2011, 10:10 AM
Thanks this is enough its working for me
Tags
Editor
Asked by
Bhuvan
Top achievements
Rank 1
Answers by
Bhuvan
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or