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

Complex validation error content types on RadGridView

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Moyle
Top achievements
Rank 1
Moyle asked on 31 Jul 2017, 01:51 PM
Hi,

As I would like to display rich, structured information with validation errors, in my application calls to INotifyDataErrorInfo.GetErrors don't return strings but complex objects. For example, there is a severity level that would need to affect the colors (from orange to darker red).

It easily works everywhere, except on the RadGridView.

I've been trying to replace the GridViewValidationToolTipTemplate with something that does not assume errors to be simple strings. I've tried setting the ToolTip.Content in other templates to Validation.Errors (the original errors) instead of Errors (which is a list of strings), but that just brings a list of duplicated entries at row level (GridViewRowTemplate), or no entry at all on cell level (GridViewCellTemplate).

Am I missing something? What do you suggest?

Thanks

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Aug 2017, 10:40 AM
Hi Moyle,

In case I am understanding your requirement correctly, you should be able to customize the validation tooltip as demonstrated in the Validation online example, or its WPF equivalent. Would such an approach be working for you or I am missing something?

Regards,
Stefan X1
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Moyle
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or