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

DataForm and IDataErrorInfo

4 Answers 133 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Armin
Top achievements
Rank 1
Armin asked on 07 Sep 2011, 02:04 PM
Hello,
is it in some way possible that RadDataForm uses the IDataErrorInfo interface to validate user input and to show the according error messages?

Regards

4 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 09 Sep 2011, 12:48 PM
Hello Armin,

I have prepared an exaple project that illustrates such a scenario. I am attaching it for your reference.

Greetings,
Ivan Ivanov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Patrick McBride
Top achievements
Rank 1
answered on 01 May 2013, 03:16 PM
Do you have an example solution for RadDataForm and IDataErrorInfo in WPF?  I cannot get the errors to display.  Works with RadGridView but not RadDataForm. The "public string this[string columnName]" get is never called when the collection is attached to the RadDataForm.

 

 

 

 

0
Patrick McBride
Top achievements
Rank 1
answered on 01 May 2013, 04:22 PM
Nevermind.  It does work in WPF.  Needed the binding to be setup like:

{Binding Name, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}



Was missing the ValidatesOnDataErrors.  This is not mentioned in the documentation.  Thanks.
0
Ivan Ivanov
Telerik team
answered on 07 May 2013, 07:18 AM
Hello,

 Thank you. We will update the respective articles in the documentation.

Kind regards,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DataForm
Asked by
Armin
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Patrick McBride
Top achievements
Rank 1
Share this question
or