I tried achieving such behavior of the control when validating it through a ValidationAttribute
, but to no avail. RadGridView
performs its validation on row level, which is the expected behavior. You can check out the attached demo application as a demonstration.
As to achieving the desired result, a possible solution might be to subscribe to the CellValidating
event and within the event handler set the BorderBrush
of the control to "Red
". Then, you can define a property in the view model to which the ToolTip
showing the error message will be bound. In order to position the ToolTip
in the top right corner of RadGridView
, I suggest you taking a look at this
StackOverflow threads. You may also find this MSDN article
useful on the matter.
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.