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

Modify Style of Validation Border of a Cell

4 Answers 132 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 06 Feb 2013, 04:25 PM

When there's a validation error on a cell, I want the cell background to be red and the tooltip displaying the error to show any time the mouse is over any portion of the cell.  This should replace the red border with small red triganle in the uppper right of the cell. 

I am using 'InViewMode' for the ValidatesOnDataError property.

What's the best way to accomplish this?

4 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 08 Feb 2013, 12:47 PM
Hello Brian,

You need to edit the templates for the invalid states. Check out this forum thread illustrating how this could be achieved.

Please, let me know if you need further assistance on this.

All the best,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Brian
Top achievements
Rank 1
answered on 08 Feb 2013, 03:53 PM
Yoan -

Thanks for your response.  The post you directed me to was helpful, but it appears to only modify the style for the cell when it's being edited.  Is there a similar style I can override when the cell is in display or 'non-edit' mode?
0
Accepted
Yoan
Telerik team
answered on 12 Feb 2013, 05:06 PM
Hi Brian,

As my colleague Vanya from the mentioned forum thread has said :You may achieve this result by predefining the template of GridViewCell.

Please check out the sample project from her second reply.

Kind regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Brian
Top achievements
Rank 1
answered on 13 Feb 2013, 03:14 PM
Yoan -

Thanks for patiently pointing that out to me.   I apparently didn't scroll down far enough to see the second set of posts.  They helped.

Brian
Tags
GridView
Asked by
Brian
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Brian
Top achievements
Rank 1
Share this question
or