Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

RadEditor control returning empty

$
0
0

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


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>