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

WPF Grid Row Validation - Row background not set to normal color after validation passes

3 Answers 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Muds
Top achievements
Rank 1
Muds asked on 17 Sep 2015, 02:23 PM

Hi All

 We have a telerik datagrid wherein we define a row validity based on properties of other rows (objects).

 so as soon as one row's validation fails, all the related row turn red as well, but when we make data changes to pass the validation, the row under edit turns back to normal color but others still remain RED.

 So my question is, when all rows turn red as soon as their validation fails why they don't turn back to normal as soon as validation passes ?

 

Thanks

M.

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 17 Sep 2015, 04:20 PM
Hello,

Can you please confirm how is the validation carried out? Do you have any validation interfaces imlemented on the dataitem type, or you are executing event-based validation? If it is the latter scenario, you can refer to this article.

Regards,
Ivan Ivanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Muds
Top achievements
Rank 1
answered on 17 Sep 2015, 04:30 PM
Yes, we implement IDataErrorInfo
0
Ivan Ivanov
Telerik team
answered on 17 Sep 2015, 04:39 PM
Hello,

I am sending you a sample project with IDataErroInfo that purposefully has invalid rows on the initial initialization. Modifying the invalid values to match the validation criteria should remove the invalid visual state of the row. Can you please have a look at it and tell me whether you manage to reproduce the behavior that is observable on your side? If there are any notable differences between your approach and mine, can you please share them so that I can test the closest scenario possible.

Regards,
Ivan Ivanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Muds
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Muds
Top achievements
Rank 1
Share this question
or