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

Toolbar not rendering properly on initial load

1 Answer 145 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ashu Sukumar
Top achievements
Rank 1
Ashu Sukumar asked on 22 May 2010, 12:18 AM
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.

1 Answer, 1 is accepted

Sort by
0
Ashu Sukumar
Top achievements
Rank 1
answered on 24 May 2010, 04:09 PM
Ok. I got it to work. I had a property LoadScriptsBeforeUI="false" set in the ScriptManager and hence it was breaking.
Tags
Editor
Asked by
Ashu Sukumar
Top achievements
Rank 1
Answers by
Ashu Sukumar
Top achievements
Rank 1
Share this question
or