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

Client side controls with model validation...

3 Answers 305 Views
Validation
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 25 Aug 2015, 08:57 PM

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

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 27 Aug 2015, 11:27 AM

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!
 
0
mark
Top achievements
Rank 1
answered on 27 Aug 2015, 03:16 PM

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

0
Kiril Nikolov
Telerik team
answered on 28 Aug 2015, 07:55 AM

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!
 
Tags
Validation
Asked by
mark
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
mark
Top achievements
Rank 1
Share this question
or