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

Cell Validation

1 Answer 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
rubenhak
Top achievements
Rank 1
rubenhak asked on 06 Oct 2009, 12:38 AM
Hi,

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,
Ruben.

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 07 Oct 2009, 01:49 PM
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.

Greetings,
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.
Tags
GridView
Asked by
rubenhak
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or