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

Validation error tooltip

6 Answers 367 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Uli
Top achievements
Rank 1
Uli asked on 24 Mar 2011, 02:54 PM
Hi,

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.

Regards Uli

6 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 24 Mar 2011, 05:03 PM
Hello Uli,

 
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.

Regards,
Vanya Pavlova
the Telerik team
0
Uli
Top achievements
Rank 1
answered on 24 Mar 2011, 06:54 PM
Hello Vanya,

predefining the template of the GridViewEditorPresenter changes the behaviour in edit mode. But I need it for non-edit or view mode.

Regards Uli
0
Vanya Pavlova
Telerik team
answered on 27 Mar 2011, 06:07 PM
Hi Uli,

 
You may achieve this result by predefining the template of GridViewCell, please refer to the attached example.

Best wishes,
Vanya Pavlova
the Telerik team
0
Rashad Rivera
Top achievements
Rank 1
answered on 12 Sep 2014, 08:15 PM
Hello Uli,

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. 
0
Rashad Rivera
Top achievements
Rank 1
answered on 12 Sep 2014, 08:17 PM
Uli,

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
0
Vanya Pavlova
Telerik team
answered on 17 Sep 2014, 01:15 PM
Hi Rashad,


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. 

Regards,
Vanya Pavlova
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Uli
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Uli
Top achievements
Rank 1
Rashad Rivera
Top achievements
Rank 1
Share this question
or