is there a way to achieve that the validation error tooltip is not only shown if the mouse cursor is within the red triangle in the upper right corner of the cell but also when it is somewhere else in the area of the invalid cell? I need this behaviour especially in non-edit mode.
6 Answers, 1 is accepted
You may achieve this result by predefing the template of the GridViewEditorPresenter in an appropriate manner as it is demonstrated at the attached example. Feel free to change it in the way you need.
the Telerik team
predefining the template of the GridViewEditorPresenter changes the behaviour in edit mode. But I need it for non-edit or view mode.
You may achieve this result by predefining the template of GridViewCell, please refer to the attached example.
the Telerik team
I have a MDI WPF application that has different custom themes depending on which window is open. Each window has its own set of styles, controls and layouts. In particular, a custom Validation.ErrorTemplate is defined for each and is set to all input control types; i.e. TextBoxes, RadDatePickers, ect.
This method you've posted will work on a one case scenario, but in my case, would require a duplication of effort where we would have to create a sister GridViewEditorPresenter style for each distinct window.
Q: is there any way to reuse the custom Validation.ErrorTemplate using your method? Perhaps we can set it using a Bind?
Thanks in advance.
I forgot to say that each window represents a sub application that uses Page navigation to present its content. This MDI app is not like Excel in where each sub window has the same theme, but rather each window representing a sub application. This is why they don't share the same styles, themes and layouts. Thanks again
Thank you for contacting us.
Following the platform rules, you have styles applied either to single instance or to all instances of an object. If you want to have specific styles they should be in the resource scope of each distinct window.
This means that if you want to have specific validation tooltip style you should add it to the resource scope of the window. Yes, you should duplicate these styles and make them specific to those elements you need.
Hope this helps.