This is a migrated thread and some comments may be shown as answers.
Validating if information is entered
1 Answer 42 Views
This is a migrated thread and some comments may be shown as answers.
Xpress
Top achievements
Rank 1
Xpress asked on 24 Jan 2012, 09:26 PM
I am using the RadMaskedTextInput to contain a last name, a first name, city and several other random strings.  I am trying to have the validation just test whether there is data in the field.  I found a help file for doing something similar on the MaskedTextBox, but nothing for the more generic TextInput.  Any help would be greatly appreciated.

The Validation help http://www.telerik.com/help/wpf/radmaskedinput-features-validation.html contains an exception called ValidationException which I cannot find a reference to in my Visual Studios.  This looked like the proper way to go, but without access to that Exception I am stuck.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 27 Jan 2012, 11:56 AM
Hello,

In order to implement the data validation scenario you need to add a reference to the System.ComponentModel.DataAnnotations assembly. I attached a sample project to get you started. Let me know if it helps.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Asked by
Xpress
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or