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

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

Definition

Constructors

Initializes a new instance of the ActionSheetEventBuilder class.

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

The ActionSheet event handlers.

Methods

Defines the handler of the Activate client-side event. Fired when the widget is opened.The event handler function context (available via the this keyword) will be set to the widget instance.

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

The handler code wrapped in a text tag.

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events =&gt; events
.Activate(
@&lt;text&gt;
function (е) {
// Handle event.
}
&lt;/text&gt;)
)
)

Defines the handler of the Activate client-side event. Fired when the widget is opened.The event handler function context (available via the this keyword) will be set to the widget instance.

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

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

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

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

Defines the handler of the Close client-side event. Fired when the widget closes.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ActionSheetEventBuilder Close(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events =&gt; events
.Close(
@&lt;text&gt;
function (е) {
// Handle event.
}
&lt;/text&gt;)
)
)

Defines the handler of the Close client-side event. Fired when the widget closes.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ActionSheetEventBuilder Close(string handler)
Parameters:handlerstring

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

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events =&gt; events
.Close("onClose")
)
)

Defines the handler of the Deactivate client-side event. Fired when the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ActionSheetEventBuilder Deactivate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events =&gt; events
.Deactivate(
@&lt;text&gt;
function (е) {
// Handle event.
}
&lt;/text&gt;)
)
)

Defines the handler of the Deactivate client-side event. Fired when the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ActionSheetEventBuilder Deactivate(string handler)
Parameters:handlerstring

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

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events =&gt; events
.Deactivate("onDeactivate")
)
)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ActionSheet is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

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

The handler code wrapped in a text tag.

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ActionSheet is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ActionSheetEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

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

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

Defines the handler of the Open client-side event. Fired when the widget opens.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ActionSheetEventBuilder Open(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events =&gt; events
.Open(
@&lt;text&gt;
function (е) {
// Handle event.
}
&lt;/text&gt;)
)
)

Defines the handler of the Open client-side event. Fired when the widget opens.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ActionSheetEventBuilder Open(string handler)
Parameters:handlerstring

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

Returns:

ActionSheetEventBuilder

Returns the current instance of ActionSheetEventBuilder .

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events =&gt; events
.Open("onOpen")
)
)