Removing tool Bar in RadEditor in Preview Mode?

4 posts, 1 answers
  1. Bhuvan
    Bhuvan avatar
    50 posts
    Member since:
    Dec 2010

    Posted 04 Mar 2011 Link to this post

    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?
  2. Bhuvan
    Bhuvan avatar
    50 posts
    Member since:
    Dec 2010

    Posted 05 Mar 2011 Link to this post

    any body please help me regarding this
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 09 Mar 2011 Link to this post

    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!
  5. Bhuvan
    Bhuvan avatar
    50 posts
    Member since:
    Dec 2010

    Posted 11 Mar 2011 Link to this post

    Thanks this is enough its working for me
Back to Top