Re code below.
If I enter a character in the age field I get an error flagged ... OK
If I enter a name starting with B I get an error flagged ... OK
It also picks up the annotation "Display" and sets title to "User Name" ... OK
But I can't get the "Required" annotation to cause an error when name is blank ?
Note: I tried the standard RadForm and that also does not pick up on "Required"
Should it work, am I missing something ?
Public Class Person
Private m_name As String
"Name is required."
Public Property name As String
Set(n As String)
If n.StartsWith("B") Then
Throw New ValidationException("Can't start with B")
m_name = n
Public Property age As Integer
Public Sub New(n As String, a As Integer)
name = n
age = a