RadEditor and ASP.NET validators

3 posts, 1 answers
  1. Jiri
    Jiri avatar
    40 posts
    Member since:
    Oct 2013

    Posted 26 May 2015 Link to this post

    I have troubles with RadEditor. Everything works fine without validators.

    When I add validator on page Editor starts behave weird. I can not paste text into editor. I can not insert image with Image manager and etc.

    I have no idea what I am doing wrong.

    This is my code:

    01.<div class="formRow">
    02.    <div class="formColumn one">
    03.        <asp:Label ID="LabelFooterTitle" runat="server" AssociatedControlID="RadTextBoxFooterTitle">
    04.            <asp:Literal ID="LiteralFooterTitle" runat="server" Text="<%$ Resources:Texts, title %>" />
    05.        </asp:Label>
    06.        <telerik:RadTextBox ID="RadTextBoxFooterTitle" runat="server" TextMode="SingleLine" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"
    07.            Skin="Youbeee" Width="100%" EmptyMessage="<%$ Resources:Texts, title %>"></telerik:RadTextBox>
    08.        <asp:RequiredFieldValidator ID="TitleValidator" runat="server" ControlToValidate="RadTextBoxFooterTitle" Display="Dynamic" ErrorMessage="Title is required!"
    09.            ValidationGroup="formGroup">*</asp:RequiredFieldValidator>
    10.    </div>
    12.<div class="formRow">
    13.    <div class="formColumn one">
    14.        <asp:Label ID="LabelFooterContent" runat="server" AssociatedControlID="RadEditorFooterContent">
    15.            <asp:Literal ID="LiteralFooterContent" runat="server" Text="<%$ Resources:Texts, content %>" />
    16.        </asp:Label>
    17.        <telerik:RadEditor ID="RadEditorFooterContent" runat="server" NewLineMode="Br" Skin="Silk" Width="100%">
    18.            <ImageManager ViewPaths="~/Images/UsersImg" UploadPaths="~/Images/UsersImg" DeletePaths="~/Images/UsersImg" EnableAsyncUpload="true" />
    19.        </telerik:RadEditor>
    20.    </div>
    22.<div class="buttons">
    23.    <telerik:RadButton ID="RadButtonSave" runat="server" Text="<%$ Resources:Texts, save %>" OnClick="RadButtonSave_Click"
    24.        CausesValidation="true" Visible="true" EnableEmbeddedSkins="false" AutoPostBack="true" Skin="Youbeee" ValidationGroup="formGroup" />

  2. Answer
    Marin Bratanov
    Marin Bratanov avatar
    3562 posts

    Posted 28 May 2015 Link to this post

    Hi Jiri,

    Can you confirm there are no script errors on the page? Also, does this issue occur in all browsers or only under specific browsers? Are you using the latest version of our controls and if not, does upgrading help?

    I would also suggest reviewing the following demo on using RadEditor with validators: http://demos.telerik.com/aspnet-ajax/editor/examples/validators/defaultcs.aspx.

    If you are using Unobtrusive validation, could you try disabling it, or adding the needed additions to your project as described in the following article: http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting-jquery.html?


    Marin Bratanov
    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
  3. DevCraft R3 2016 release webinar banner
  4. Jiri
    Jiri avatar
    40 posts
    Member since:
    Oct 2013

    Posted 28 May 2015 in reply to Marin Bratanov Link to this post

    Hi Marin,

    I have no script error on page. But I am using Unobtrusive validation.

    When I disable it everything works fine. Thanks for your help.

Back to Top