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.
Posted on:18 Oct 2016 12:04
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.
Note that our property grid is in intersection mode (e.g. PropertySetMode="Intersection")
Posted on:14 Oct 2016 13:31
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
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.
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
Posted on:11 Oct 2016 14:50
Will RadPropertyGrid support INotifyDataErrorInfo if the class that is implementing it is a DynamicObject?
Posted on:11 Oct 2016 08:18
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?
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.
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.