Enterprise Library Validation with RadDataForm and RadDataServiceDataSource

2 posts, 1 answers
  1. Santiago
    Santiago avatar
    8 posts
    Member since:
    Feb 2011

    Posted 18 Dec 2012 Link to this post

    Hello Telerik Team,

    I'm trying to use the Enterprise Library Validation Block for Silverlight 5 using Metadata of the classes for specify the validation term for every property.

    Here is my Code:
    public partial class Customer
    public class CustomerMetadata
            [Required(ErrorMessage = "El nombre es requerido")]
            [StringLengthValidator(1, RangeBoundaryType.Inclusive, 2, RangeBoundaryType.Ignore, MessageTemplate = "Name is Required")]
            public string Name{

    Where the class Customer is the generated class from the ServiceReference (OData v2). But when I bind my RadDataServiceDataSource to the RadDataForm the validation is not performed.

    The question is.. Is it possible to Use this validation approach?

    Thank You for your help
  2. Answer
    Maya avatar
    4062 posts

    Posted 21 Dec 2012 Link to this post

    Hello Santiago,

    Currently, we do not support such validation. What you can try instead is to work with DataAnnotations.
    Still, I will research the case to see whether we could improve the behavior.  

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top