I have the next User Control
ascx File:
ascx.cs File:
But when I click the "btnRadEditorContent" button, the RadEditor is not updating the content, It's removing all the toolbars and showing one blank box where I cannot write. Is there another extra step that I'm not doing?.
When I'm not using the AjaxManager, the content is set correctly.
Thanks for your support.
ascx File:
| <%@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" |
| Namespace="Telerik.Web.UI" TagPrefix="Telerik" %> |
| <Telerik:RadEditor runat="server" ID="TestEditor" Skin="Vista" |
| EditModes="Design" Height="200px" Width="100%" EnableResize="False"> |
| <Tools> |
| <Telerik:EditorToolGroup> |
| <Telerik:EditorTool Name="Bold" /> |
| <Telerik:EditorTool Name="Underline" /> |
| <Telerik:EditorTool Name="Italic" /> |
| <Telerik:EditorTool Name="StrikeThrough" /> |
| </Telerik:EditorToolGroup> |
| <Telerik:EditorToolGroup> |
| <Telerik:EditorTool Name="FontName" /> |
| <Telerik:EditorTool Name="FontSize" /> |
| <Telerik:EditorTool Name="ForeColor" /> |
| <Telerik:EditorTool Name="BackColor" /> |
| </Telerik:EditorToolGroup> |
| </Tools> |
| <Content> |
| </Content> |
| </Telerik:RadEditor> |
| <asp:Button runat="server" ID="btnRadEditorContent" Text="Set RadEditor Content" onclick="btnRadEditorContent_Click" /> |
| <Telerik:RadAjaxManager runat="server" ID="TestAjaxManager"> |
| <AjaxSettings> |
| <Telerik:AjaxSetting AjaxControlID="btnRadEditorContent"> |
| <UpdatedControls> |
| <Telerik:AjaxUpdatedControl ControlID="TestEditor" /> |
| </UpdatedControls> |
| </Telerik:AjaxSetting> |
| </AjaxSettings> |
| </Telerik:RadAjaxManager> |
ascx.cs File:
| protected void btnRadEditorContent_Click(object sender, EventArgs e) |
| { |
| TestEditor.Content = "This needs to change"; |
| } |
But when I click the "btnRadEditorContent" button, the RadEditor is not updating the content, It's removing all the toolbars and showing one blank box where I cannot write. Is there another extra step that I'm not doing?.
When I'm not using the AjaxManager, the content is set correctly.
Thanks for your support.