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

[Solved] Disable all toolbars

1 Answer 159 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 22 Sep 2009, 04:33 PM
Is there a way to disable all toolbars? I did a search and didn't find anything.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Sep 2009, 07:35 AM
Hello Mystrymaster,

You can predefine the editor's toolbar with the required tools and then use the following server side code to disable the various tools:
aspx:
<telerik:RadEditor ID="RadEditor1" runat="server"
    <Tools> 
        <telerik:EditorToolGroup> 
            <telerik:EditorTool Name="Cut" /> 
            <telerik:EditorTool Name="Copy" /> 
            <telerik:EditorTool Name="Paste" /> 
        </telerik:EditorToolGroup> 
    </Tools> 
</telerik:RadEditor> 

c#:
 protected void Page_Load(object sender, EventArgs e) 
    { 
       foreach (EditorToolGroup edtrGp in RadEditor1.Tools) 
        { 
            foreach (EditorTool tool in edtrGp.Tools) 
            { 
                tool.Enabled = false
            } 
        } 
    } 
 

Thanks
Princy.

Tags
Editor
Asked by
Rick
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or