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

Defines the fluent interface for configuring the TabStrip events.

Definition

Constructors

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

Methods

Defines the inline handler of the Activate client-side event.

C#
public TabStripEventBuilder Activate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

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

Returns:

TabStripEventBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Events(events =&gt; events.Activate(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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

C#
public TabStripEventBuilder Activate(string handler)
Parameters:handlerstring

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

Returns:

TabStripEventBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Events(events =&gt; events.Activate("onActivate"))
)

Defines the inline handler of the ContentLoad client-side event.

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

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

Returns:

TabStripEventBuilder

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

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

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

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

Returns:

TabStripEventBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Events(events =&gt; events.ContentLoad("onContentLoad"))
)

Defines the inline handler of the Error client-side event.

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

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

Returns:

TabStripEventBuilder

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

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

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

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

Returns:

TabStripEventBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Events(events =&gt; events.Error("onError"))
)

Defines the inline handler of the KendoKeydown client-side event

C#
public virtual TabStripEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

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

Returns:

TabStripEventBuilder

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

C#
public virtual TabStripEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

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

Returns:

TabStripEventBuilder

Defines the inline handler of the Select client-side event.

C#
public TabStripEventBuilder Select(Func<object, object> handler)
Parameters:handlerFunc<object, object>

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

Returns:

TabStripEventBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Events(events =&gt; events.Select(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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

C#
public TabStripEventBuilder Select(string handler)
Parameters:handlerstring

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

Returns:

TabStripEventBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Events(events =&gt; events.Select("onSelect"))
)

Defines the inline handler of the Show client-side event.

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

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

Returns:

TabStripEventBuilder

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

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

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

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

Returns:

TabStripEventBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Events(events =&gt; events.Show("onActivate"))
)