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

CollectionEditor - perform validation using IDataErrorInfo

2 Answers 47 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 02 Sep 2016, 07:42 AM

Hi,

    The validation is working alright with viewmodel bound to PropertyGrid. But it is not working when it is bound to CollectionEditor. (See attached picture)

    Can you share some example on how to do that? 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 06 Sep 2016, 12:56 PM
Hello Joel,

The desired behavior can be achieved by creating an attached property and handling the AutoGeneratingPropertyDefinition event of the RadPropertyGrid inside the CollectionEditor.

I'm attaching a sample project to demonstrate this. Please have a look at it and let me know whether such an approach would work for you.

Regards,
Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Joel
Top achievements
Rank 1
answered on 07 Sep 2016, 12:21 AM

Hi Dilyan,

  Thanks for the sample project. It is working !

Tags
PropertyGrid
Asked by
Joel
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Joel
Top achievements
Rank 1
Share this question
or