As you know, Asp.Net MVC 3 provides a server/client side unified validation framework.
For example :
you can write attribute [Required] on a model's property.
[Required] public int Price { get; set; }
Then render the field by Html.EditorFor().
MVC will write the "data-val-required" information into the Input element, so that JQuery validation can unobtrusively validate the field.
My question is:
I want to set an validation attribute on my model, then render the model using Infragistic's Html helpers, Can I get the client-side validation automatically(by MVC's way)?
Another question is: Can I write my own validation logic for Infragistics control.
Hi spak_li,
Check the following sample: http://es.infragistics.com/products/jquery/sample/editors/data-annotation-validation
I hope that will help you
Thanks,
Let me know if you have any further questions regarding the matter.