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

tooltip modality

2 Answers 54 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Fraser
Top achievements
Rank 1
Fraser asked on 04 Nov 2011, 03:20 PM
Hi,

Does anyone know if there is anyway that you can change the transparency or even set the back color when using the tooltip with modality. I'm trying to completely blank the rest of my page don't want any transparency.

Many thanks,
Fraser

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 07 Nov 2011, 01:12 PM
Hello Fraser,

There are two ways to do so.

1) You can change it via overriding our CSS globally for the page by placing the following CSS rule in the head section of your page:
.TelerikModalOverlay
{
    opacity: 1 !important;
    progid: DXImageTransform.Microsoft.Alpha(style=0,opacity=100) !important;
}

OR

2) you can access the modal overlay of the specific tooltip in its OnClientShow event and use JavaScript to set these properties:
function OnClientShow(sender, args)
{
    sender._modalExtender._getModalOverlay().style.opacity = "1";
    sender._modalExtender._getModalOverlay().progid = "DXImageTransform.Microsoft.Alpha(style=0,opacity=100)";
}


Greetings,
Marin
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
0
Fraser
Top achievements
Rank 1
answered on 16 Nov 2011, 12:46 PM
Thanks this seems to work.

Cheers,
Fraser
Tags
ToolTip
Asked by
Fraser
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Fraser
Top achievements
Rank 1
Share this question
or