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

Defines the fluent interface for configuring toolbar commands in the Grid

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GridContextMenuCommandBuilder

Inheritance: objectGridContextMenuCommandBuilder

Derived Classes: GridContextMenuCustomCommandBuilder

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

Constructors

Initializes a new instance of the GridToolBarCommandBuilder class.

C#
public GridContextMenuCommandBuilder(GridContextMenuCommand command)
Parameters:commandGridContextMenuCommand

The command configuration

Properties

C#
protected GridContextMenuCommand Command { get; set; }

Methods

Sets the icon for the command.

C#
public GridContextMenuCommandBuilder Icon(string icon)
Parameters:iconstring

The icon which should be displayed

Returns:

GridContextMenuCommandBuilder

Sets the text for the command.

C#
public GridContextMenuCommandBuilder Text(string text)
Parameters:textstring

The text which should be displayed

Returns:

GridContextMenuCommandBuilder