Completed
Last Updated: 18 Oct 2016 12:04 by ADMIN
Vitalij
Created on: 25 Jun 2014 13:53
Category: PropertyGrid
Type: Feature Request
4
PropertyGrid: Implement INotifyDataErrorInfo interface for validation.
So far only IDataErrorInfo and exception based validation is supported. RadGridView already supports INotifyDataErrorInfo, it's time for RadPropertyGrid.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
10 comments
Vitalij
Posted on: 24 Jun 2015 10:01
A year has passed, anything new on the matter?
ADMIN
Ivan Ivanov
Posted on: 09 Aug 2016 10:12
RadPropertyGrid supports data errors validation. Please contact us through the support ticketing system if you encounter an unsupported scenario.
Vitalij
Posted on: 03 Oct 2016 13:32
RadPropertyGrid indeed supports data error validation, but only through IDataErrorInfo interface. Our bussiness object already implements newer INotifyDataErrorInfo interface for validation and to use it in RadPropertyGrid we have to implement IDataErrorInfo too, which is reduntant.
Edit: And probably the most important is that INotifyDataErrorInfo supports asynchronous validation whereas IDataErrorInfo don't.
ADMIN
Dilyan Traykov
Posted on: 11 Oct 2016 08:18
Hello Vitalij,

Could you please have a look at the following project which demonstrates how to perform validation in RadPropertyGrid with the INotifyDataErrorInfo interface and let me know if it suits your needs?
Chris
Posted on: 11 Oct 2016 14:50
Will RadPropertyGrid support INotifyDataErrorInfo if the class that is implementing it is a DynamicObject?
Vitalij
Posted on: 12 Oct 2016 17:27
Hallo Dilyan, looks like it's working with the current release of RadPropertyGrid, even with asynchronous validation. I've tried it very long time ago and it wasn't working back then. Now, the only thing missing is a chapter about this in documentation and maybe a sample on github.
Thank you for your time, Vitalij
ADMIN
Dilyan Traykov
Posted on: 14 Oct 2016 11:19
Chris, there should not be any issues if the dynamic object successfully implements the INotifyDataErrorInfo interface.

Vitalij, we'll make sure to document this and add the necessary examples.
Chris
Posted on: 14 Oct 2016 13:31
Dilyan,
  We have confirmed that RadPropertyGrid is calling the methods from INotifyDataErrorInfo but we are not getting any indication on the UI. I don't see any mention of having to set anything in the XAML in http://docs.telerik.com/devtools/wpf/controls/radpropertygrid/features/validation

Chris
Posted on: 14 Oct 2016 13:34
Dilyan,
  Note that our property grid is in intersection mode (e.g. PropertySetMode="Intersection")
ADMIN
Dilyan Traykov
Posted on: 18 Oct 2016 12:04
Hello Chris,

I'm attaching a sample project to demonstrate how you can implement validation through the INotifyDataErrorInfo interface for a class inheriting from DynamicObject.

However, as your scenario sounds more complicated, may I kindly ask you to open a new support ticket and provide a sample project or more information on the matter there so that I may better assist you in finding a solution?

Thank you in advance for your cooperation and understanding.