Hi John,
It is not very easy to do so with the current RadToolTip implementation, but due to cutomers' request we made some extensions to the RadToolTipManager client-API to make such a task easier. The Q1 SP1 will be released by the end of this week, and will feature the changes.
Here is a code sample that we prepared for you. It will not work now, but it will work when we release the SP1 and you should be able to implement your scenario in a fairly straightforward manner:
function showToolTip(element, message) |
{ |
var tooltipManager = $find("<%= RadToolTipManager1.ClientID %>"); |
|
//Find the tooltip for this element if it has been created |
var tooltip = tooltipManager.getToolTipByElement(element); |
|
//Create a tooltip if no tooltip exists for such element |
if (!tooltip) |
{ |
tooltip = tooltipManager.createToolTip(element); |
} |
|
//Show the tooltip with the message [if any message is provided] |
if (message) tooltip.set_text(message); |
tooltip.show(); |
} |
|
Sincerely yours,
Svetlina
the Telerik team