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

Multiple RadEditor in a page - RTF

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bhaskar Khaund
Top achievements
Rank 1
Bhaskar Khaund asked on 04 Nov 2010, 02:27 PM
Hi,

I have a page, where there is 3 radeditor controls along with other form elements (e.g. textbox, combobox etc). My requirement is, I need to 'extract' the RTF from these 3 controls and store it in the database. I have looked up different posts regarding this, but all the sample applications that was posted was using the method to use Response.Redirect (to stop the Save Dialog popto to open), after I call the ExportToRtf() method. But, I wont be able to get the RTF content of all the RadEditors after the 1st Response.Redirect (also, my view state will be lost along with all the data that was eneted by the user in the form elements).

I have also tried putting OpenInNewWindow = "false", but this doesnt seem to work (my control def is given below).

<

 

 

telerik:RadEditor ID="txtAfterChange" Width="250" Height="150" ToolsFile="~/Script/ToolsFile.xml"

 

 

 

ToolsWidth="330px" runat="server" EditModes="Design" ToolbarMode="ShowOnFocus">

 

 

 

<ExportSettings OpenInNewWindow="false">

 

 

 

</ExportSettings>

 

 

 

</telerik:RadEditor>

Is there any alternative, or any resolution to my problem? Please help me !

Regards,
Bhaskar

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 09 Nov 2010, 02:31 PM
Hello Bhaskar,

You can add a fourth hidden RadEditor on the page and assign the content from all other editors in it on submit, e.g.

RadEditor4.Content = RadEditor1.Content + "<br/>" + RadEditor2.Content + "<br/> " + RadEditor3.Content;

After that execute the ExportToRtf method of RadEditor4 when submitting the content.

protected void Button1_Click(object sender, EventArgs e)
{
        RadEditor4.Content = RadEditor1.Content + "<br/>" + RadEditor2.Content + "<br/> " + RadEditor3.Content;
        RadEditor4.ExportToRtf();
}

Sincerely yours,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Bhaskar Khaund
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or