No client-side validation for Telerik web application project

4 posts, 0 answers
  1. miksh
    miksh avatar
    285 posts
    Member since:
    Nov 2006

    Posted 25 Mar 2014 Link to this post

    I created a Telerik Web application C# project in VS2013 and found out that no client-side validation occurs. Is it expected due to the Telerik project template is missing any of MS js libraries? 
  2. Misho
    Admin
    Misho avatar
    212 posts

    Posted 26 Mar 2014 Link to this post

    Hi,

    We are aware of this problem. It is a general configuration issue between the new unobtrusive ASP.NET 4.5 validation and jQuery. The way you could workaround this issue is to disable the Unobstrusive validation mode with the following line in web.config:

    <appSettings>
           ...
           ...
     
        <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
       </appSettings>


    More information regarding the issue as well as workarounds can also be found at the following links:
    http://stackoverflow.com/questions/12452109/asp-net-2012-unobtrusive-validation-with-jquery
    http://www.telerik.com/forums/validators-in-asp-net-4-5-and-the-new-unobtrusive-validation-mode
    http://connect.microsoft.com/VisualStudio/feedback/details/735928/in-asp-net-web-application-visual-basic-the-requiredfieldvalidator-doest-work

    I hope you will find this information helpful.

    Regards,
    Misho
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  3. miksh
    miksh avatar
    285 posts
    Member since:
    Nov 2006

    Posted 26 Mar 2014 in reply to Misho Link to this post

    Thanks, works great.

    Why not to add this option into Telerik project template then?
  4. Misho
    Admin
    Misho avatar
    212 posts

    Posted 26 Mar 2014 Link to this post

    Hi,

    We will take your suggestion into consideration for future implementation. I've logged a public item in our feedback portal where you could observe its status, comment and vote.

    Best Regards,
    Misho
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
Back to Top