This is a migrated thread and some comments may be shown as answers.

Requiredfieldvalidators

1 Answer 49 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
peter
Top achievements
Rank 1
peter asked on 23 Jan 2012, 05:08 PM
Hi is there a concept of requiredfieldvalidators in silverlight, if not how are people handling situations which require a textbox to be filled in before a button is clicked, i tried the IDataErrorInfo method, however this does not work when the textbox has not been tabbed into.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 24 Jan 2012, 07:43 AM
Hi Peter,

You can try working with DataAnnotations and set Required attribute to the properties you want. Please take a look at the following articles for a reference:
1. Using DataAnnotations to Customize Data Classes.
2. Validation.

Let me know in case you need any further assistance. 

Greetings,
Maya
the Telerik team

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

Tags
DataForm
Asked by
peter
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or