I'm using a RadEditor inside an Ajax Update Panel and Have a custom tools file.
<telerik:RadEditor ID="reQuestionText" OnClientLoad="OnClientLoad" StripFormattingOnPaste="MSWord" |
EditModes="Design" Width="100%" Height="150px" runat="server" ToolsFile="~/Controls/Telerik/RadEditorBasicTools.xml" /> |
In the page, I don't display the Editor on the Page_Load itself. The editor is displayed only after I click a button.
But, once it is displayed, the toolbar buttons don't display properly (see attachment radeditor_on_initial_page_load.png).
protected void Page_Load(object sender, EventArgs e) |
{ |
if(!IsPostBack) |
reQuestionText.Visible = false; |
} |
protected void btnDisplayEditor_Click(object sender, EventArgs e) |
{ |
reQuestionText.Visible = true; |
} |
protected void btnSave_Click(object sender, EventArgs e) |
{ |
SaveRadEditorContent(); |
} |
Then if I do a postback (use a Save button to save the content in the editor), the editor seems to display so weirdly (see attachment radeditor_after_postback.png).
The same works properly if I display the editor on the first time itself.
Any help will be greatly appreciated.
Thanks,
Ashu.