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

how to get tools file on client side

2 Answers 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
srinivas
Top achievements
Rank 1
srinivas asked on 25 Aug 2008, 10:41 AM
Hi,

I have 2 toolsfiles and i have 2 buttons. Based on button click i want to load toolsfile to radeditor. How can i achieve this on clientside.

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Aug 2008, 11:18 AM
Hi Srinivas,

The editor's toolbars are entirely created on the server and the only possible way to change them on the client is to use an AJAX callback.

Here is a sample example:

ASPX:


    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

    <asp:UpdatePanel ID="UP1" runat="server">
        <ContentTemplate>
            <telerik:radeditor runat="server" ID="RadEditor1"></telerik:radeditor>
            <asp:Button ID="Button1" runat="server" Text="Set ToolsFile 1" />
            <asp:Button ID="Button2" runat="server" Text="Set ToolsFile 2" />
        </ContentTemplate>
    </asp:UpdatePanel>

ASPX.VB

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        RadEditor1.ToolsFile = "~/ToolsFile1.xml"
    End Sub

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
        RadEditor1.ToolsFile = "~/ToolsFile2.xml"
    End Sub


Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Runat="Server"
Top achievements
Rank 2
answered on 08 Dec 2011, 02:12 PM
Hello,

It's not right!!!!!!!

I have 16 toolsfiles XML and one editor on my page!

Why create 10 editors?

Please find solution for this issue!

This is a must!

Thanks. 
Tags
Editor
Asked by
srinivas
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Runat="Server"
Top achievements
Rank 2
Share this question
or