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

RadEditor and ASP.NET validators

2 Answers 59 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jiri
Top achievements
Rank 1
Jiri asked on 26 May 2015, 12:27 PM

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>
11.</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>
21.</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" />
25.</div>

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 28 May 2015, 01:35 PM

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?

Regards,

Marin Bratanov
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
0
Jiri
Top achievements
Rank 1
answered on 28 May 2015, 04:00 PM

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.

Tags
Editor
Asked by
Jiri
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Jiri
Top achievements
Rank 1
Share this question
or