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

Defines the fluent API for configuring the Kendo UI Tooltip for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the TooltipEventBuilder class.

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

The Tooltip event handlers.

Methods

Defines the handler of the ContentLoad client-side event. Fires when an AJAX request for the content completes.

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

The handler code wrapped in a text tag.

Returns:

TooltipEventBuilder

Returns the current instance of 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 handler of the ContentLoad client-side event. Fires when an AJAX request for the content completes.

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

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

Returns:

TooltipEventBuilder

Returns the current instance of TooltipEventBuilder .

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

Defines the handler of the Error client-side event. Fires when an AJAX request for content fails.

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

The handler code wrapped in a text tag.

Returns:

TooltipEventBuilder

Returns the current instance of 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 handler of the Error client-side event. Fires when an AJAX request for content fails.

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

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

Returns:

TooltipEventBuilder

Returns the current instance of TooltipEventBuilder .

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

Defines the handler of the Hide client-side event. Fires when a Tooltip is hidden.

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

The handler code wrapped in a text tag.

Returns:

TooltipEventBuilder

Returns the current instance of 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 handler of the Hide client-side event. Fires when a Tooltip is hidden.

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

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

Returns:

TooltipEventBuilder

Returns the current instance of TooltipEventBuilder .

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

Defines the handler of the RequestStart client-side event. Fires before an AJAX request starts. Note that this event is triggered only when an AJAX request is used instead of an iframe.

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

The handler code wrapped in a text tag.

Returns:

TooltipEventBuilder

Returns the current instance of 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 handler of the RequestStart client-side event. Fires before an AJAX request starts. Note that this event is triggered only when an AJAX request is used instead of an iframe.

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

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

Returns:

TooltipEventBuilder

Returns the current instance of TooltipEventBuilder .

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

Defines the handler of the Show client-side event. Fires when a Tooltip is shown.

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

The handler code wrapped in a text tag.

Returns:

TooltipEventBuilder

Returns the current instance of 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 handler of the Show client-side event. Fires when a Tooltip is shown.

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

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

Returns:

TooltipEventBuilder

Returns the current instance of TooltipEventBuilder .

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