New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadToolTipManager Object

RadToolTipManager specific API

Public Properties

NameDescription
get_valueGets the arbitrary value associated with a tooltip that can be used in scenarios involving AJAX or web services
set_valueSets an arbitrary value associated with a tooltip that can be used in scenarios involving AJAX or web services

Public Methods

NameDescription
createToolTipCreates a new tooltip on the client which is associated with a corresponding target element. See Example 1.
getToolTipByElementGets the tooltip associated with a corresponding target element if such a tooltip exists. See Example 2.
get_autoTooltipifyGets a boolean value that indicates whether automatic RadToolTip creation for DOM elements with title or alt attributes is enabled.
get_enableDataCachingGets a value which determines whether tooltip content should be cached after first load on demand request
set_autoTooltipifySets a boolean value that indicates whether automatic RadToolTip creation for DOM elements with title or alt attributes is enabled.This can be used to create tooltips only for a specific are on demand, without having the automatic feature enabled for the entire page. See Example 3.
set_enableDataCachingSets a value which determines whether tooltip content should be cached after first load on demand request. When caching is enabled only one request will be performed for each target, regardless of how many times the tooltip will be shown. By default a new request is performed each time the tooltip must be shown.
tooltipifyIf AutoTooltipify is enabled calling this method will iterate over the page (or the element's children if a DOM element is passed as an argument) so that tooltips will be created. This can be used for content that is dynamically created for to add RadToolTips for elements outside of the TooltipZone. For Example, adding tooltips for content inside a RadWindow's ContentTemplate: tooltipManager.tooltipify(oWnd.get_contentElement());

For a live demo see RadToolTipManager's Client Side API.

Example 1: Creating a RadTooltip for an HTML element.

JavaScript
var tooltip = tooltipManager.createToolTip(element);

Example 2: Getting a reference to the tooltip associated with a specific HTML element.

JavaScript
var tooltip = tooltipManager.getToolTipByElement(element);

Example 3: Create tooltips for a specific area on the page on demand.

JavaScript
var ttMngr = $find("<%=RadToolTipManager1.ClientID %>");
ttMngr.set_autoTooltipify(true);
ttMngr.tooltipify($get("theDesiredArea"));
ttMngr.set_autoTooltipify(false);

See Also