
11 Answers, 1 is accepted
We do not yet have any plans for a Validation framework specifically for ASP.NET MVC but you can use RadInput and RadInputManager to greatly simplify the validation.
Kind regards,
Ivo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.

http://msdn.microsoft.com/en-us/library/cc467894.aspx
http://msdn.microsoft.com/en-us/library/dd140088.aspx



Am I missing something?
Even better -> is it possible to modify the Output from OpenAccess to include necessary attributes for validation?
Currently OpenAccess does not posses any means of validation framework, neither it suports such for Asp.net MVC. Could you share with us your expectations what exactly OpenAccess should do to enhance the support of Asp.net MVC validation? Thanks in advance for the feedback.
Sincerely yours,
Dimitar Kapitanov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.

As per the xVal.codeplex.com site, we add the validation code to the Model by putting these types of attrbutes on the properties:
Here is the example Model:
public class Booking { [Required] [StringLength(15)] public string ClientName { get; set; } [Range(1, 20)] public int NumberOfGuests { get; set; } [Required] [DataType(DataType.Date)] public DateTime ArrivalDate { get; set; } }
Then the xVal library and jQuery allow for handling the validation based on those attributes. The nice thing about it is that via the xVal library, any validation handlers can be used.
*BUT*, those attributes somehow need to be added in the Model.
Perhaps it is possible another way, but I would not know how.
Tim
Ok I see your point, though I ‘am unable to give you insight when this will be on our TODO list for OpenAccess. We are definitely considering adding validation logic to the O/R tool.
Kind regards,
Dimitar Kapitanov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.


Hi, this thread is kind of old now so I want to ask if theres been any development on this issue?
Seems its a standard part of mvc2:
http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx
I would like to use this with openaccess though.
(The template solution looked kind of hackish for me so I haven't tried that)
The templates you have seen in this thread refer to the ones use with OpenAccess Classic. If you are using the new designer you should have a look at the T4 templates we use for code generation. You will find this blog post and this help article helpful.
I would like to point out that the article you have shared actually uses the so called "buddy classes", which is a technique that you can use with any class and allows you to extend the generated classes with additional attributes. This means that you should not experience any problem in using it with OpenAccess, however it will be your responsibility to add the data annotations as we haven't yet planned such a feature.
I hope this helps and if you experience any trouble please contact us back.
Serge
the Telerik team