Client side controls with model validation...

4 posts, 0 answers
  1. mark
    mark avatar
    50 posts
    Member since:
    Mar 2009

    Posted 25 Aug 2015 Link to this post

    We are in the process of purchasing the Clienside controls(NOT the server wrappers) and I am trying to get unobtrusive, clientside validation working against the MVC Model data annotations...Is there a good example I can use to reference?  Most of what I am finding uses the Server MVC Wrappers.  We are trying to go more clientside and then using Web API for Posting/Gets/etc...

     

    Thanks

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 27 Aug 2015 Link to this post

    Hello mark,

     

    We do not have an example that matches your requirements. The client side validation that we offer uses the built-in validation framework, and we have it demonstrated here:

     

    http://demos.telerik.com/kendo-ui/grid/editing-custom-validation

     

    If you want to validate against the server, here is explained how to do it:

     

    http://www.telerik.com/blogs/handling-server-side-validation-errors-in-your-kendo-ui-grid

     

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. mark
    mark avatar
    50 posts
    Member since:
    Mar 2009

    Posted 27 Aug 2015 in reply to Kiril Nikolov Link to this post

    Those are Grid examples.  I was just asking about a plan HTML Form.  The ASP.NET MVC validation uses the data annotations on the model.  From what I see with the Kendo Validation, you put the "required" tags and messages right in the html.  I was just trying to see if the html field could use the validation that was attached to the Model itself. 

     

    Thanks

  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 28 Aug 2015 Link to this post

    Hello mark,

     

    If you are using plain HTML, then Kendo UI does not have mechanisms to control the validation other than the Kendo UI Validator.

     

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready