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

Defines the fluent interface for configuring the GridContextMenu events.

Definition

Constructors

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

Methods

Defines the inline handler of the Activate client-side event

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

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

Returns:

GridContextMenuEventBuilder

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

C#
public virtual GridContextMenuEventBuilder Activate(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder

Defines the inline handler of the Close client-side event

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

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

Returns:

GridContextMenuEventBuilder

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

C#
public virtual GridContextMenuEventBuilder Close(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder

Defines the inline handler of the Deactivate client-side event

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

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

Returns:

GridContextMenuEventBuilder

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

C#
public virtual GridContextMenuEventBuilder Deactivate(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder

Defines the inline handler of the Open client-side event

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

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

Returns:

GridContextMenuEventBuilder

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

C#
public virtual GridContextMenuEventBuilder Open(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder

Defines the inline handler of the Select client-side event

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

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

Returns:

GridContextMenuEventBuilder

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

C#
public virtual GridContextMenuEventBuilder Select(string handler)
Parameters:handlerstring

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

Returns:

GridContextMenuEventBuilder