Edit this page

Kendo.Mvc.UI.Fluent.ContextMenuEventBuilder

Defines the fluent interface for configuring the ContextMenu events.

Methods

Open(System.Func<System.Object,System.Object>)

Defines the inline handler of the Open client-side event

For additional information check the open event documentation.

Parameters

onOpenAction System.Func<System.Object,System.Object>

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

Example (ASPX)

<% Html.Kendo().ContextMenu()
    .Name("ContextMenu")
    .Events(events => events.Open(
            @<text>
                function(e) {
                //event handling code
                }
                </text>
                ))
                .Render();
                %>

Open(System.String)

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

For additional information check the open event documentation.

Parameters

onOpenHandlerName System.String

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

Example (ASPX)

<%= Html.Kendo().ContextMenu()
.Name("ContextMenu")
.Events(events => events.Open("onOpen"))
%>

Close(System.Func<System.Object,System.Object>)

Defines the inline handler of the Close client-side event

For additional information check the close event documentation.

Parameters

onCloseAction System.Func<System.Object,System.Object>

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

Example (ASPX)

<% Html.Kendo().ContextMenu()
    .Name("ContextMenu")
    .Events(events => events.Close(
            @<text>
                function(e) {
                //event handling code
                }
                </text>
                ))
                .Render();
                %>

Close(System.String)

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

For additional information check the close event documentation.

Parameters

onCloseHandlerName System.String

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

Example (ASPX)

<%= Html.Kendo().ContextMenu()
.Name("ContextMenu")
.Events(events => events.Close("onClose"))
%>

Activate(System.Func<System.Object,System.Object>)

Defines the inline handler of the Activate client-side event

For additional information check the activate event documentation.

Parameters

onActivateAction System.Func<System.Object,System.Object>

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

Example (ASPX)

<% Html.Kendo().ContextMenu()
    .Name("ContextMenu")
    .Events(events => events.Activate(
            @<text>
                function(e) {
                //event handling code
                }
                </text>
                ))
                .Render();
                %>

Activate(System.String)

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

For additional information check the activate event documentation.

Parameters

onActivateHandlerName System.String

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

Example (ASPX)

<%= Html.Kendo().ContextMenu()
.Name("ContextMenu")
.Events(events => events.Activate("onActivate"))
%>

Deactivate(System.Func<System.Object,System.Object>)

Defines the inline handler of the Deactivate client-side event

For additional information check the deactivate event documentation.

Parameters

onDeactivateAction System.Func<System.Object,System.Object>

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

Example (ASPX)

<% Html.Kendo().ContextMenu()
    .Name("ContextMenu")
    .Events(events => events.Deactivate(
            @<text>
                function(e) {
                //event handling code
                }
                </text>
                ))
                .Render();
                %>

Deactivate(System.String)

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

For additional information check the deactivate event documentation.

Parameters

onDeactivateHandlerName System.String

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

Example (ASPX)

<%= Html.Kendo().ContextMenu()
.Name("ContextMenu")
.Events(events => events.Deactivate("onDeactivate"))
%>

Select(System.Func<System.Object,System.Object>)

Defines the inline handler of the Select client-side event

For additional information check the select event documentation.

Parameters

onSelectAction System.Func<System.Object,System.Object>

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

Example (ASPX)

<% Html.Kendo().ContextMenu()
    .Name("ContextMenu")
    .Events(events => events.Select(
            @<text>
                function(e) {
                //event handling code
                }
                </text>
                ))
                .Render();
                %>

Select(System.String)

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

For additional information check the select event documentation.

Parameters

onSelectHandlerName System.String

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

Example (ASPX)

<%= Html.Kendo().ContextMenu()
.Name("ContextMenu")
.Events(events => events.Select("onSelect"))
%>