Styling the error border and validation tooltip

2 posts, 0 answers
  1. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 23 Apr 2010 Link to this post

    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.

  2. Pana
    Pana avatar
    748 posts

    Posted 28 Apr 2010 Link to this post

    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,
    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.
Back to Top