This is a migrated thread and some comments may be shown as answers.
INotifyDataErrorInfo issues
2 Answers 23 Views
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 16 Nov 2011, 06:36 PM
Implementing the INotifyDataErrorInfo interface is proving to be troublesome.

When validating data in the PastingCellClipboardContent Event, adding an error for one of the properties is for some reason highlighting all fields instead of just the one with the error.

agBillingItem Row = e.Cell.Item as agBillingItem;
Row.AddError("SLA", "Invalid SLA", false);

By adding the error for the "SLA" property, other properties such as "Obligation" are also displaying with the red border suggesting an error.  However when hovering over these other fields, the error message that is shown is "System.Collections.Generic.List `1 [System.String]".

2 Answers, 1 is accepted

Sort by
0
Gavin
Top achievements
Rank 1
answered on 17 Jul 2014, 08:53 PM
I am also experiencing the same problem!  My business object has only 1 validation error on one of the property and every column of the grid is highlighted with a red border.  I am also using celltemplate and celledittemplate
0
Dimitrina
Telerik team
answered on 18 Jul 2014, 12:57 PM
Hello,

In order to only have validation in the cell you are currently editing, you can set :
ValidatesOnDataErrors="InEditMode"

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Asked by
Matthew
Top achievements
Rank 1
Answers by
Gavin
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or