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

[Solved] Validation Warnings in GridView

1 Answer 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
GR
Top achievements
Rank 1
GR asked on 11 Feb 2011, 07:39 PM
Hi,

I was wondering if there is an easy way to display "warning" validations different from "error" validations.  I'm using CSLA, so my business objects have 3 levels of validation information: Error, Warning and Info.  The error validations work great - they show up in red with the error information.  I would however like my warning validations to show up in yellow, with a different icon to the left of the row with the warning.

Is there an easy, MVVM-friendly way of doing this?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 16 Feb 2011, 05:03 PM
Hi Greg,

 
In order to change the error indicator in each GridViewRow you need to edit its template and change the Grid container named ErrorIndicator and the Path elements contained in it. If you need to change the validation message, just edit the template of GridViewCell and change the ValidationToolTip template contained in it, please refer to the attached pictures. 

Also you may find attached a sample project that demonstrates these approaches.

Greetings,
Vanya Pavlova
the Telerik team
Tags
GridView
Asked by
GR
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or