Show validation status for grid cells only?

2 posts, 0 answers
  1. Michael
    Michael avatar
    8 posts
    Member since:
    Jan 2014

    Posted 06 Feb 2015 Link to this post

    There is grid with object which implement INotifyDataErrorInfo for validation and ValidatesOnDataErrors="InViewMode".
    So basically grid is used only to highlight errors.

    Everything works great, but if there is error, grid highlights each cell with incorrect value and additionally whole row.

    Is there way to highlight only cells, not whole row?

    Thanks,
    Michael
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 10 Feb 2015 Link to this post

    Hello Michael,

    Highlighting of the whole row depends on the IsValid property of GridViewRow. When you validate an item through INotifyDataErrorInfo, the row gets invalid.
    What you can try is to modify the template of GridViewRow and remove the element for the validation.  


    Regards,
    Maya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top