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:
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
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:
[Metadatatype(
typeof
(CustomerMetadata))]
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{
get
;
set
;
}
}
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