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

RadEditor control returning empty

3 Answers 60 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Renato
Top achievements
Rank 1
Renato asked on 23 Jul 2013, 02:22 PM
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

3 Answers, 1 is accepted

Sort by
0
Renato
Top achievements
Rank 1
answered on 23 Jul 2013, 03:18 PM
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
0
Renato
Top achievements
Rank 1
answered on 26 Jul 2013, 09:07 AM
Telerik support is so slow!!!!!!!! cant have one reply in 2 days
0
Ianko
Telerik team
answered on 26 Jul 2013, 12:10 PM
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.
Tags
Sharepoint Integration
Asked by
Renato
Top achievements
Rank 1
Answers by
Renato
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or