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

Defines the fluent interface for configuring context menu commands.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GridContextMenuCommandFactory

Inheritance: objectGridContextMenuCommandFactory

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public GridContextMenuCommandFactory(IList<GridContextMenuCommand> container)
Parameters:containerIList<GridContextMenuCommand>

Methods

Defines a copy selection command.

C#
public GridContextMenuCommandBuilder CopySelection()
Returns:

GridContextMenuCommandBuilder

Defines a copy selection without headers command.

C#
public GridContextMenuCommandBuilder CopySelectionNoHeaders()
Returns:

GridContextMenuCommandBuilder

Defines a create command.

C#
public GridContextMenuCommandBuilder Create()
Returns:

GridContextMenuCommandBuilder

Defines a custom command.

C#
public GridContextMenuCustomCommandBuilder Custom()
Returns:

GridContextMenuCustomCommandBuilder

Defines a custom command with a "Command" postfix for the specified name.

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

The name of the custom command.

Returns:

GridContextMenuCustomCommandBuilder

Defines a destroy command.

C#
public GridContextMenuCommandBuilder Destroy()
Returns:

GridContextMenuCommandBuilder

Defines a edit command.

C#
public GridContextMenuCommandBuilder Edit()
Returns:

GridContextMenuCommandBuilder

Defines a export Excel command.

C#
public GridContextMenuCommandBuilder ExportExcel()
Returns:

GridContextMenuCommandBuilder

Defines a export PDF command.

C#
public GridContextMenuCommandBuilder ExportPDF()
Returns:

GridContextMenuCommandBuilder

Defines a move group previous command.

C#
public GridContextMenuCommandBuilder MoveGroupPrevious()
Returns:

GridContextMenuCommandBuilder

Defines a move group previous command.

C#
public GridContextMenuCommandBuilder Paste()
Returns:

GridContextMenuCommandBuilder

Defines a reorder row command.

C#
public GridContextMenuCommandBuilder ReorderRow()
Returns:

GridContextMenuCommandBuilder

Defines a select command.

C#
public GridContextMenuCommandBuilder Select()
Returns:

GridContextMenuCommandBuilder

Defines a separator command.

C#
public void Separator()

Defines a sort ascending command.

C#
public GridContextMenuCommandBuilder SortAsc()
Returns:

GridContextMenuCommandBuilder

Defines a sort descending command.

C#
public GridContextMenuCommandBuilder SortDesc()
Returns:

GridContextMenuCommandBuilder