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

Tooltip foreground color

1 Answer 76 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
DuelingCats
Top achievements
Rank 2
DuelingCats asked on 26 Feb 2013, 03:49 PM
I am using the Q3 2012 release of ASP.NET AJAX. The ForeColor property doesn't look like it is applying to my text. When I inspected the tooltip in chrome, it doesn't look like that color is being overridden by any of my styles. Is this property broken in the ToolTip control?

Edit: I just tested CssClass and that isn't being applied to my text either.

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 27 Feb 2013, 12:53 PM
Hello,

The ForeColor is merely inherited from WebControl and is not implemented in RadToolTip. To change the default styling we place from our skins you need to use a CSS override, for example:
.customTextColor .rtWrapperContent div
{
    color: Red;
}

<telerik:RadToolTip ID="RadToolTip1" runat="server" VisibleOnPageLoad="true" AutoCloseDelay="0" CssClass="customTextColor"
    RelativeTo="BrowserWindow" Width="300px" Height="100px" Position="Center" Text="lorem ipsum dolor sit amet">
</telerik:RadToolTip>

The CssClass is applied to the root element of the popup, so you can examine the rendered HTML through the dev toolbar to see the classes that you wish to override.

Kind regards,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ToolTip
Asked by
DuelingCats
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or