Hi, I have a RadEditor control which is returning "empty". The ID of the control is reComment and reComment.Content is returning empty, any ideas?
<telerik:RadEditor ID="reComment" runat="server" EditModes="Design" ToolbarMode="ShowOnFocus" ToolsWidth="170px" Width="412px" Height="72px"> <Tools> <telerik:EditorToolGroup> <telerik:EditorTool Name="Bold" /> <telerik:EditorTool Name="Italic" /> <telerik:EditorTool Name="StrikeThrough" /> <telerik:EditorTool Name="Underline" /> <telerik:EditorTool Name="InsertUnorderedList" /> <telerik:EditorTool Name="InsertOrderedList" /> </telerik:EditorToolGroup> </Tools> </telerik:RadEditor>
<asp:Button ID="btSubmit" runat="server" Text="Valider" OnClick="btSubmit_Click" />code:
if (reComment.Content.Trim() != "") <<<<<<<< HERE RETURNING "EMPTY" {
The reComments is inside a Panel and is being declared inside onInit
protected override void OnInit(EventArgs e) { Page.Init += delegate(object sender, EventArgs e_Init) { reComment = this.FindControl("reComment") as RadEditor;
thanks