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

Provides a fluent interface for configuring custom context menu commands in the Grid.

Definition

Constructors

C#
public GridContextMenuCustomCommandBuilder(GridContextMenuCommand command)
Parameters:commandGridContextMenuCommand

Methods

Sets the command name for the custom command.

C#
public GridContextMenuCustomCommandBuilder Command(string commandName)
Parameters:commandNamestring

The command name.

Returns:

GridContextMenuCustomCommandBuilder

Specifies the items of the item.

C#
public GridContextMenuCustomCommandBuilder Items(Action<GridContextMenuSettingsItemFactory> configurator)
Parameters:configuratorAction<GridContextMenuSettingsItemFactory>

The configurator for the items setting.

Returns:

GridContextMenuCustomCommandBuilder