Modify Style of Validation Border of a Cell

5 posts, 1 answers
  1. Brian
    Brian avatar
    17 posts
    Member since:
    Jun 2011

    Posted 06 Feb 2013 Link to this post

    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?

  2. Yoan
    Admin
    Yoan avatar
    1182 posts

    Posted 08 Feb 2013 Link to this post

    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.

  3. Brian
    Brian avatar
    17 posts
    Member since:
    Jun 2011

    Posted 08 Feb 2013 Link to this post

    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?
  4. Answer
    Yoan
    Admin
    Yoan avatar
    1182 posts

    Posted 12 Feb 2013 Link to this post

    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.

  5. Brian
    Brian avatar
    17 posts
    Member since:
    Jun 2011

    Posted 13 Feb 2013 Link to this post

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