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

Show validation status for grid cells only?

1 Answer 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 06 Feb 2015, 01:16 PM
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

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 10 Feb 2015, 03:01 PM
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.

 
Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or