New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

RadTooltipManager class

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[RequiredScript(typeof(RadToolTipScripts))]
[ClientScriptResource("Telerik.Web.UI.RadToolTipManager", "Telerik.Web.UI.ToolTip.Scripts.RadToolTipManager.js")]
[TelerikToolboxCategory("Container")]
[ToolboxBitmap(typeof(RadToolTipManager), "Toolbox.Icons.ToolTip.png")]
public class RadToolTipManager : RadToolTipBase, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl

Inheritance: objectControlWebControlRadWebControlRadToolTipBaseRadToolTipManager...

Derived Classes: PivotGridToolTipManager

Implements: IAttributeAccessorIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIPostBackDataHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members RadToolTipBase.Show()RadToolTipBase.VisibleOnPageLoadRadToolTipBase.AnimationRadToolTipBase.AnimationDurationRadToolTipBase.ManualCloseRadToolTipBase.StickyRadToolTipBase.HideEventRadToolTipBase.ShowEventRadToolTipBase.WidthRadToolTipBase.HeightRadToolTipBase.TextRadToolTipBase.IgnoreAltAttributeRadToolTipBase.TitleRadToolTipBase.ManualCloseButtonTextRadToolTipBase.PositionRadToolTipBase.ContentScrollingRadToolTipBase.RelativeToRadToolTipBase.OffsetXRadToolTipBase.OffsetYRadToolTipBase.AutoCloseDelayRadToolTipBase.HideDelayRadToolTipBase.ShowDelayRadToolTipBase.MouseTrailingRadToolTipBase.ShowCalloutRadToolTipBase.RenderInPageRootRadToolTipBase.EnableShadowRadToolTipBase.EnableRoundedCornersRadToolTipBase.ModalRadToolTipBase.OverlayRadToolTipBase.EnableAriaSupportRadToolTipBase.OnClientBeforeShowRadToolTipBase.OnClientShowRadToolTipBase.OnClientBeforeHideRadToolTipBase.OnClientHideRadToolTipBase.SupportsRenderingModeWebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.SaveViewState()WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagKeyWebControl.TagNameWebControl.ToolTipControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadToolTipManager()

Properties

Gets or sets a value whether the RadToolTipManager, when its TargetControls collection is empty will tooltipify automatically all elements on the page that have a 'title' attribute

C#
[ClientControlProperty]
[Browsable(true)]
[Bindable(true)]
public bool AutoTooltipify { get; set; }

Gets or sets a value indicating whether the content of loaded on demand tooltip should be cached after the first request.

C#
[ClientControlProperty]
[ClientPropertyName("enableDataCaching")]
public bool EnableDataCaching { get; set; }
Property Value:

True if data should be cached; otherwise false. The default value is false.

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 (caching is disabled).

Gets or sets a value indicating the client-side event handler that is called when the RadToolTipManager when a call to a WebService is initiated or AJAX request is started.

C#
[ClientControlEvent]
[ClientPropertyName("requestStart")]
public virtual string OnClientRequestStart { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

If specified, the OnClientRequestStart client-side event handler is called when the request is started Two parameters are passed to the handler:

  • sender, the RadToolTipManager object.
  • args.

This event can be cancelled.

Example:
C#
The following example demonstrates how to use the
<strong>OnClientRequestStart</strong> property.

<p>
    <div class="LanguageSpecific" name="Code_VB">
        &lt;script type="text/javascript"&gt;<br />
         function OnClientRequestStart(sender, args)<br />
         {<br />
            var tooltipManager = sender;<br />
         }<br />
        &lt;/script&gt;
    </div>
    <div class="LanguageSpecific" name="Code_VB">
        &lt;radsld:RadToolTipManager ID="RadToolTipManager1"<br />
         runat= "server"<br />
        <strong>OnClientRequestStart="OnClientRequestStart"</strong>&gt;<br />
        ....<br />
        &lt;/radsld:RadToolTipManager&gt;
    </div>
</p>

Gets or sets a value indicating the client-side event handler that is called when the RadToolTipManager receives the server response from a WebService or AJAX request.

C#
[ClientControlEvent]
[ClientPropertyName("requestEnd")]
public virtual string OnClientResponseEnd { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

If specified, the OnClientResponseEnd client-side event handler is called before the RadToolTipManager displays the content returned from the server. Two parameters are passed to the handler:

  • sender, the RadToolTipManager object.
  • args.

This event cannot be cancelled.

Example:
C#
The following example demonstrates how to use the
<strong>OnClientResponseEnd</strong> property.

<p>
    <div class="LanguageSpecific" name="Code_VB">
        &lt;script type="text/javascript"&gt;<br />
         function OnClientResponseEnd(sender, args)<br />
         {<br />
            var tooltipManager = sender;<br />
         }<br />
        &lt;/script&gt;
    </div>
    <div class="LanguageSpecific" name="Code_VB">
        &lt;radsld:RadToolTipManager ID="RadToolTipManager1"<br />
         runat= "server"<br />
        <strong>OnClientResponseEnd="OnClientResponseEnd"</strong>&gt;<br />
        ....<br />
        &lt;/radsld:RadToolTipManager&gt;
    </div>
</p>

Gets or sets a value indicating the client-side event handler that is called when the Load On Demand call to the WebService or the AJAX request is interrupted by an error.

C#
[ClientPropertyName("responseError")]
[ClientControlEvent]
public virtual string OnClientResponseError { get; set; }

The collection of TargetControl objects that allows for specifying the objects for which tooltips will be created on the client-side.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ToolTipTargetControlCollection TargetControls { get; }
Property Value:

The collection of TargetControl objects that allows for specifying the objects for which tooltips will be created on the client-side.

Use the TargetControls collection to programmatically control which objects should be tooltipified on the client-side.

Gets or sets the id (ClientID if a runat=server is used) of a html element whose children will be tooltipified

C#
[ClientControlProperty]
[Browsable(true)]
[Bindable(true)]
public string ToolTipZoneID { get; set; }

Gets a reference to the UpdatePanel property of RadToolTipManager. The UpdatePanel allows for sending AJAX content to the client-side during the OnAjaxUpdate event.

C#
public UpdatePanel UpdatePanel { get; }
Property Value:

Gets a reference to the UpdatePanel property of RadToolTipManager. The UpdatePanel allows for sending AJAX content to the client-side during the OnAjaxUpdate event.

Gets the settings for the web service used to populate items.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public WebServiceSettings WebServiceSettings { get; }
Property Value:

An WebServiceSettings that represents the web service used for populating items.

Use the WebServiceSettings property to configure the web service used to populate items on demand. You must specify both Path and Method to fully describe the service.

In order to use the integrated support, the web service should have the following signature:

   <pre><code class="lang-csharp">[ScriptService]

public class WebServiceName : WebService { [WebMethod] public string WebServiceMethodName(object context) { // We cannot use a dictionary as a parameter, because it is only supported by script services. // The context object should be cast to a dictionary at runtime. IDictionary<string, object> contextDictionary = (IDictionary<string, object>) context;

    //...
}

}

Methods

Allows for dynamic content to be set into the tooltip with an ajax request. The tooltip triggers the event when it is shown on the client.

C#
protected virtual void OnAjaxUpdate(ToolTipUpdateEventArgs e)
Parameters:eToolTipUpdateEventArgs

If specified, the OnAjaxUpdate is triggered when the tooltip is shown on the client. Two parameters are passed to the handler:

  • sender, the RadToolTip object.
  • args.

This event cannot be cancelled.

Example:
C#
The following example demonstrates how to use the
<strong>OnAjaxUpdate</strong> property.

<p>
    <div class="LanguageSpecific" name="Code_VB">
        &lt;telerik:RadToolTip ID="RadToolTip1"<br />
         runat= "server"<br />
        <strong>OnAjaxUpdate="OnAjaxUpdate"</strong>&gt;<br />
        ....<br />
        &lt;/telerik:RadToolTip&gt;
    </div>
</p>

Events

The event is used to load content on-demand in the tooltip via AJAX

C#
public event ToolTipUpdateEventHandler AjaxUpdate

The event handler takes two parameters - an object for the sender and an object of type ToolTipUpdateEventArgs for the event arguments. The event cannot be cancelled.