Cell Validation

2 posts, 0 answers
  1. rubenhak
    rubenhak avatar
    58 posts
    Member since:
    Dec 2008

    Posted 05 Oct 2009 Link to this post


    I'm using WPF controls version 2009.2.904.35.
    I need to make the RadGridView to validate cell value, make the background red and show a tooltip when the cell value is not correct. I tried using CellValidating event, modifying e.Cell.Background and setting tooltip using .NET SetTooltip utility function, but it works only for FIRST time. the rest of the modifications to the cell does not trigger the grid to be refreshed.

    Can you please send me a common example which validates the cells in the beginning when loading the data, and further when cell values are updated.

    Thanks a lot,
  2. Nedyalko Nikolov
    Nedyalko Nikolov avatar
    871 posts

    Posted 07 Oct 2009 Link to this post

    Hello rubenhak,

    We do not intend to validate data on loading, so if you want to enable such functionality you should use custom CellStyle as described in this blog post. Indeed RadGridView.CellValidating is the event which you have to use for cell validation. About example you can take a look at this example.

    Nedyalko Nikolov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top