As per message subject, does radPropertyGrid support RegularExpressionAttribute for validation? I can't find a mention in documentation.
2 Answers, 1 is accepted
0
Maya
Telerik team
answered on 18 Nov 2013, 12:24 PM
Hello Andrea,
Actually, this issue is more related to the binding being notified and the TextBox having the error displayed rather than the support of the property grid itself. What you can is:
1. Define the property (for example):
[RegularExpression(@"^[a-zA-Z''-'\s]{1,10}$", ErrorMessage = "Characters are not allowed.")]
public string Name
{
get { return this.name; }
set
{
if (value != this.name)
{
Validator.ValidateProperty(value, new ValidationContext(this, null, null) { MemberName = "Name" });
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>