This question is locked. New answers and comments are not allowed.
HI! Every one:
When i use telerikGridView:RadGridView and i used the template on GridViewDataColumn as fllows
that i need use silverlight validation on fileds, and i throws Exception at set method
why update the propertyname blank and exception touch off, the UI is not prompt?
When i use telerikGridView:RadGridView and i used the template on GridViewDataColumn as fllows
| <telerikGridView:GridViewDataColumn.CellTemplate> |
| <DataTemplate> |
| <TextBlock Text="{Binding PropertyName, Mode=TwoWay}"/> |
| </DataTemplate> |
| </telerikGridView:GridViewDataColumn.CellTemplate> |
| <telerikGridView:GridViewDataColumn.CellEditTemplate> |
| <DataTemplate> |
| <TextBox Text="{Binding PropertyName, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" /> |
| </DataTemplate> |
| </telerikGridView:GridViewDataColumn.CellEditTemplate> |
| public string PropertyName |
| { |
| get |
| { |
| return this.propertyName; |
| } |
| set |
| { |
| if (value == null || value == string.Empty) |
| { |
| throw new Exception("Property Name is Blankļ¼"); |
| } |
| else if (ValidatorUtil.HasSpecialChar(value, "~!@#$%^&*().,;")) |
| { |
| throw new Exception("Property Name have special char!"); |
| } |
| this.propertyName = value; |
| } |
| } |