How can I make it validate all columns and/or the entire entity when a row edit ends? I can't use your implementation of INotifyDataErrorInfo because the projects containing entities don't reference Telerik libraries. Do I have to manually handle the RowValidating event?
Some of the other interfaces my entity implements include...
- INotifyDataErrorInfo (local implementation to be replaced when .Net 4.5 is released)
- IRevertibleChangeTracking
- IEditableObject
6 Answers, 1 is accepted
Indeed RadGridView will check only changed items when validation is done by IDataErrorInfo interface. This interface lacks notification part like (INotifyDataErrorInfo) and therefore RadGridView depends on INotifyPropertyChanged interface for the notification part.
You can use Telerik.Windows.Data.INotifyDataErrorInfo interface, which could be used instead MS.INDEI interface. Keep in mind that with .NET 4.5 you will have to recompile your code to use MS.INDEI, since we will remove our copy. We added this interface just because we use common code base for WPF and Silverlight (SL4 introduces this interface).
RadGridView also supports IEditableObject interface, so this interface also could be used to achieve your goals.
Let me know if there is something unclear.
Nedyalko Nikolov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Windows Forms did this with the IDEI interface by consulting the IDEI.Error property for displaying row level errors, and used the IDEI indexer for the cell level errors.
Is there any way to achieve the same thing (row level validation indications only) with radGridView?
Thanks,
Brian
If anyone has any hints on how to address these, would greatly appreciate.