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

Styling the error border and validation tooltip

1 Answer 113 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
GEB
Top achievements
Rank 1
GEB asked on 23 Apr 2010, 03:07 PM
I'm currently using the new SP1 version of RadControls with SL4.  In previous versions of the controls, the style of the validation error border on the RadDatePicker, and the validation tooltip were contained within the style template generated by Blend.  I then changed the border color to red (#FFFF000000) and removed the triangle in the upper right corner.  I also styled the validation tooltip to match the styles of my other controls.

In the latest version, generating a style template for the RadDatePicker doesn't seem to generate these styles inline any more.  Now they are referenced in other components contained in the Telerik.Windows.Controls.Chromes namespace.  Any examples of how I can change these styles now given that SP1 has been released?  Mainly, I'm looking to slightly customize the error border and the validation tooltip for the RadDatePicker and RadTimePicker.

1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 28 Apr 2010, 02:05 PM
Hi Gary,

I have created a 5 minutes short for you showing how to customize the validation visual element and eventually the validation visual tooltip. I'm attaching a zip file containing the movie 'EditValidation.swf' - drag and drop it in a browser with flash installed. It's a pity that the screen capturing program has so user friendly interface but does not support Silverlight yet.

The Movie will show you how to generate the templates for RadDatePicker, RadTimePicker and NonEditable RadComboBox, how to make their ValidationToolTip visible while you edit them and how you can apply the visual to all of them so you can edit it in one place affecting all of them.

The new approach may be somehow difficult to use at first but if you are about to style several controls it's a lot easier to do the changes in the chromes and then just apply the proper style in all controls.

The project I used is also attached.

Kind regards,
Panayot
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
DatePicker
Asked by
GEB
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or