Content, Text and Html all returns empty string?

3 posts, 0 answers
  1. Edward
    Edward avatar
    83 posts
    Member since:
    Feb 2011

    Posted 25 Aug 2015 Link to this post

    I have a RadEditor in form view like this:

    <telerik:RadEditor runat="server" ID="txtNote" OnDataBinding="txtNote_DataBinding" OnExportContent="txtNote_ExportContent" Height="180px" Width="100%" EditModes="Design">
                                                <Tools>
                                                    <telerik:EditorToolGroup>
                                                        <telerik:EditorTool Name="Cut" />
                                                        <telerik:EditorTool Name="Copy" />
                                                        <telerik:EditorTool Name="Paste" />
                                                    </telerik:EditorToolGroup>
                                                </Tools>
                                            </telerik:RadEditor>

     ​For whatever reason, this always return empty string

                    var txtNote = (fv.FindControl("txtNote") as RadEditor);
                    if (txtNote.Text == "") // this is always true

    I also try Content, Html, GetHtml() and they are all the same.

     

  2. Edward
    Edward avatar
    83 posts
    Member since:
    Feb 2011

    Posted 25 Aug 2015 Link to this post

    Just tested - it is only not working in IE 11.  It works in Chrome.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 26 Aug 2015 Link to this post

    Hi Edward,

    If the server call is done via AJAX techniques, such issue might appear due to the submit mechanism of the browser. You can troubleshoot that by following this help article— http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/troubleshooting/editor-content-is-not-saved-after-ajax-update.

    Regards,
    Ianko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top