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

Defines the fluent interface for configuring tooltip client events.

Definition

Constructors

C#
public TooltipEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

Methods

Defines the inline handler of the ContentLoad client-side event

C#
public TooltipEventBuilder ContentLoad(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.ContentLoad(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the name of the JavaScript function that will handle the ContentLoad client-side event.

C#
public TooltipEventBuilder ContentLoad(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.ContentLoad("contentLoad"))
)

Defines the inline handler of the Error client-side event

C#
public TooltipEventBuilder Error(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.Error(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the name of the JavaScript function that will handle the Error client-side event.

C#
public TooltipEventBuilder Error(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.Error("error"))
)

Defines the inline handler of the Hide client-side event

C#
public TooltipEventBuilder Hide(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.Hide(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the name of the JavaScript function that will handle the Hide client-side event.

C#
public TooltipEventBuilder Hide(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.Hide("hide"))
)

Defines the inline handler of the RequestStart client-side event

C#
public TooltipEventBuilder RequestStart(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.RequestStart(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the name of the JavaScript function that will handle the RequestStart client-side event.

C#
public TooltipEventBuilder RequestStart(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.RequestStart("requestStart"))
)

Defines the inline handler of the Show client-side event

C#
public TooltipEventBuilder Show(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.Show(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the name of the JavaScript function that will handle the Show client-side event.

C#
public TooltipEventBuilder Show(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

TooltipEventBuilder

Example:
C#
@(Html.Kendo().Tooltip()
.For("#element")
.Events(events =&gt; events.Show("show"))
)