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

Backcolor not working

8 Answers 190 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Gregor Gillespie
Top achievements
Rank 1
Gregor Gillespie asked on 17 Sep 2008, 03:10 PM
Hi there

I realise I could look like a complete idiot but here goes. If I drop a tooltip on my page and leave everything as is except for changing the backcolor, it never actually changes. What am I missing here?

Davy

8 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Sep 2008, 06:12 AM
Hi Gregor,

Go through the following help articles to get details about customizing the appearence of RadTooltip.
Controlling Appearance
Understanding the CSS File

Shinu
0
Martin
Telerik team
answered on 18 Sep 2008, 06:47 AM
Hi Gregor,

Are you trying to control the appearance of RadToolTip with the standard server tag properties (such as backcolor="#ff00ff")? Unfortunately, this approach will not be of much help, as the appearance of RadToolTip is controlled entirely with CSS skins. As Shinu (thanks, Shino!) has directed you, please, go through the skinning documentation of that particular control in order to get a better vision of how this should be done.

If you face difficulties, please, let us know. We will be happy to help.

All the best,
Martin Ivanov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gregor Gillespie
Top achievements
Rank 1
answered on 18 Sep 2008, 07:35 AM
I was indeed trying to use the standard server tag. Seems pointless to have it there otherwise though I'll assume it inherits from a control with these properties already there. I wanted to avoid going through the bother of changing a skin just to change the background colour although I've done this now.
Thanks
0
Svetlina Anati
Telerik team
answered on 18 Sep 2008, 02:23 PM
Hello Gregor,

The BackColor property is an inherited from the WebControl class property and it is not implemented in the RadToolTip control on purpose. As the RadToolTip control is a complex control and uses the concept of skinning, it is not clear how simply setting this property should influence the control. Additionally, we are using background images (for example the Callout is an image) , which you cannot change by changing the background color. That is why, in case you want to change the look and feel of the RadToolTip, I would recommend one of the following approaches:
  1. Overwrite some of the styles of the Default skin: just add the following to the HEAD of your page:
    <style type="text/css">  
    .radtooltip_Default,  
    .radtooltip_Default td  
    {  
        background-colorblack !important;  
    }  
    </style> 
  2. Create your custom skin by modifying one of the existing skins of the control. You can find detailed information on creating custom skins in our online documentation:
    1. How skins work
    2. Skin registration
    3. Modifying built-in skins
    4. Creating a custom skin


Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Imran Javed Zia
Top achievements
Rank 1
answered on 29 Jun 2011, 03:15 PM
Hi,
We are using 2010 Q3 Sp2. and are not able to apply Backcolor to RadToolTipManager. We have tried both #rrggbb and color name. Has this issue been fixed or we have to apply some workaround?
Thanks
0
Marin Bratanov
Telerik team
answered on 01 Jul 2011, 10:48 AM
Hello Imran,

As stated in the previous post the BackColor property is an inherited one from the WebControl class and it is not implemented in the RadTooltip. The same applies for properties such as BorderColor, BorderStyle, BorderWidth, etc. The way to modify this part of the RadToolTip's appearance is either by overriding its CSS rules, or by creating a custom skin. Please refer to the previous post for more information and links on the matter.


All the best,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Imran Javed Zia
Top achievements
Rank 1
answered on 01 Jul 2011, 11:42 AM
Hi,
I have already revied the other posts but those are for RadTooltip,  but we are using RADTooltipManager and given example is not working for it. Can you help me in this context?
Thanks
0
Marin Bratanov
Telerik team
answered on 01 Jul 2011, 12:56 PM
Hello Imran,

The RadToolTipManager actually renders like the RadToolTip, just eases the management of multiple tooltips and other more complex scenarios.

The other posts in this thread are almost three years old and the skins and selectors may have changed over time. The easiest way to get the correct CSS rule is to use a tool like Firebug or IE Dev toolbar to get the css class you need direclty.

For your convenience I created and attached a simple page where I changed the background of a tooltip.


Greetings,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ToolTip
Asked by
Gregor Gillespie
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Martin
Telerik team
Gregor Gillespie
Top achievements
Rank 1
Svetlina Anati
Telerik team
Imran Javed Zia
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or