RadEditor control returning empty

4 posts, 0 answers
  1. Renato
    Renato avatar
    16 posts
    Member since:
    Jun 2013

    Posted 23 Jul 2013 Link to this post

    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

  2. Renato
    Renato avatar
    16 posts
    Member since:
    Jun 2013

    Posted 23 Jul 2013 Link to this post

    Well, I tried inside CreateChildControl and it also didnt work... also tride to change from "reComment = this.FindControl("reComment"as RadEditor;" to "reComment = 
    panlcomments.FindControl("reComment"as RadEditor;" and also didnt work

  3. Renato
    Renato avatar
    16 posts
    Member since:
    Jun 2013

    Posted 26 Jul 2013 Link to this post

    Telerik support is so slow!!!!!!!! cant have one reply in 2 days
  4. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 26 Jul 2013 Link to this post

    Hi Renato,

    You have an answer on this issue in another forum post opened from you. Please follow the informationm there. 

    Just in short I will explain for everyone who will read this thread from here that the editor content is loaded with data from the ViewState on the page load event, before this stage the value of this content is null or empty string literal.

    I would like to ask to open only one support thread about the same issue, so that we are able to track the information correctly and provide you with a proper solution.

    On your last issue with the support response time - please note that the guaranteed 24 hour turnaround time applies only for official support tickets. Forum threads are, generally, community content and, even though we monitor them, we cannot guarantee a timeframe for an answer or even the answer itself. If you need a quick response from our team you can open a support ticket by logging in with your account and purchasing a subscription. More details on the available plans can be found here.

    Regards,
    Ianko
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top