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

4 posts, 0 answers
  1. Muds
    Muds avatar
    17 posts
    Member since:
    Jan 2015

    Posted 17 Sep 2015 Link to this post

    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.

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 17 Sep 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Muds
    Muds avatar
    17 posts
    Member since:
    Jan 2015

    Posted 17 Sep 2015 in reply to Ivan Ivanov Link to this post

    Yes, we implement IDataErrorInfo
  5. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 17 Sep 2015 Link to this post

    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
Back to Top