These are my ASPX code and CSS code... i am unable to get the border color to appear even after i set the border width and border color manually ( on the aspx page )
CSS Class
Thankx in advance
<telerik:RadToolTipManager CssClass="ToolTipContent" ID="RadToolTipManager1" runat="server" |
AutoCloseDelay="200000" ContentScrolling="Both" Height="360px" HideEvent="LeaveTargetAndToolTip" |
MouseTrailing="True" OnAjaxUpdate="OnAjaxUpdate" Position="MiddleRight" |
RelativeTo="BrowserWindow" ShowDelay="300" Width="410px" BackColor="Transparent" ManualClose="True" > |
</telerik:RadToolTipManager> |
CSS Class
.ToolTipContent |
{ |
background-color:#DCD2BE !important; |
color:Black !important; |
font-size:0.8em !important; |
border-color:#DCD2BE !important; |
border-width:thick !important; |
} |
Thankx in advance
7 Answers, 1 is accepted
0
Accepted

Princy
Top achievements
Rank 2
answered on 08 May 2009, 06:30 AM
Hello Chamira,
You can try setting the following code in the css style to display a border color for the ToolTip:
css:
Thanks
Princy.
You can try setting the following code in the css style to display a border color for the ToolTip:
css:
<style type="text/css"> |
div.radtooltip_Default |
{ |
border: solid 1px Red !important; |
} |
</style> |
Thanks
Princy.
0

Chamira
Top achievements
Rank 1
answered on 11 May 2009, 08:39 AM
thanks a lot princy
0

Chamira
Top achievements
Rank 1
answered on 11 May 2009, 01:55 PM
thankx princy .. but this is not workin on IE.... am i missin somethin??
0

Mark
Top achievements
Rank 1
answered on 20 Dec 2011, 10:46 PM
I have a situation where I am dynamically creating tooltips in a grid and want to change their background color based on a condition. How would I do this in code?
0
Hello LeRoy,
You can use the OnClientShow event of the RadToolTip and JavaScrtipt to change the background color:
Regards,
Marin
the Telerik team
You can use the OnClientShow event of the RadToolTip and JavaScrtipt to change the background color:
var
flag =
true
;
function
OnClientShow(sender, args)
{
var
theContentElement = sender.get_contentElement().style;
if
(flag)
{
theContentElement.backgroundColor =
"#FF0000"
;
}
else
{
theContentElement.backgroundColor =
"#008000"
;
}
flag = !flag;
}
Regards,
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

Mark
Top achievements
Rank 1
answered on 21 Dec 2011, 05:04 PM
Exactly what I am looking for.
I have text in the tool tip that may include the word 'warning' or 'hold'. I would like the background color to be red if the tool tip includes the word 'hold', otherwise I want it to be yellow. All of this is in a rad list view so I could have a hidden field or invisible label that could be set to true or false server-side if necessary. I am having trouble accessing the a hidden control or lable inside the list view. either solution will work. Either parse the text of the tool tip for the word hold or find the hidden field's value inside the listview.
I have text in the tool tip that may include the word 'warning' or 'hold'. I would like the background color to be red if the tool tip includes the word 'hold', otherwise I want it to be yellow. All of this is in a rad list view so I could have a hidden field or invisible label that could be set to true or false server-side if necessary. I am having trouble accessing the a hidden control or lable inside the list view. either solution will work. Either parse the text of the tool tip for the word hold or find the hidden field's value inside the listview.
0
Hi,
Svetlina Anati
the Telerik team
As far as I understand, getting the text as a string and searching with a regular expression or simply indexof will work for you. If so, you can easily get the content by using the get_content() method of the tooltip (it is documented here: http://www.telerik.com/help/aspnet-ajax/tooltip-client-side-radtooltip.html) - it will return the content where you can put a criteria and then search with a regex for it.
Kind regards,Svetlina Anati
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