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

Defines the fluent API for configuring a custom command in the grid context menu.

Definition

Constructors

Initializes a new instance of the GridContextMenuCustomCommandBuilder class.

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

The current GridContextMenuCustomCommandBuilder instance for method chaining.