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

An object of this type can be added as a TargetControl of the RadToolTipManager.

Definition

Constructors

Generic constructor.

C#
public ToolTipTargetControl()

Creates a new target control object based on the provided arguments.

C#
public ToolTipTargetControl(string id, bool isClientID)
Parameters:idstring

An ID (server or client) for the target control.

isClientIDbool

A boolean value indicating whether a server or client ID was provided.

Creates a new target control object based on the provided arguments.

C#
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public ToolTipTargetControl(string id, string val, bool isClientID)
Parameters:idstring

An ID (server or client) for the target control.

valstring

An arbitrary value that can be used to provide additional information when loading the content.

isClientIDbool

A boolean value indicating whether a server or client ID was provided.

Creates a new target control object based on the provided arguments.

C#
public ToolTipTargetControl(string id, string val)
Parameters:idstring

The server ID of the target control.

valstring

An arbitrary value that can be used to provide additional information when loading the content.

Creates a new target control object based on the provided arguments.

C#
public ToolTipTargetControl(string id)
Parameters:idstring

The server ID of the target control.

Properties

A flag that indicates what type of ID (server/client) was provided.

C#
public virtual bool IsClientID { get; set; }
Property Value:

A boolean flag.

Must be set according to the value of the TargetControlID property. Must be set to true if ClientID has been passed, otherwise to false.

The target control's ID.

C#
public virtual string TargetControlID { get; set; }
Property Value:

A string that indicates the ID.

According to the ID of the targeted control that you pass the IsClientID property must be set. If it is the server ID set it to false, if it is the ClientID - set it to true. In the case of dynamically created controls their ClientID is available only after they have been added to their container. In INaming container scenarios (e.g. grids) it is better to use the ClientID to avoid duplicates.

An arbitrary value that can be used to provide additional information when loading the content.

C#
public virtual string Value { get; set; }
Property Value:

A string that is generated when adding the target control.

It is passed as a field in the ToolTipUpdateEventArgs object that is passed as event arguments to the OnAjaxUpdate event handler.