Defines the fluent interface for configuring toolbar commands.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
The type of the model
Syntax:
public class GridToolBarCommandFactoryBase<T> where T : class
Inheritance: objectGridToolBarCommandFactoryBase<T>
Derived Classes:
Inherited Members
Constructors
GridToolBarCommandFactoryBase method.
public GridToolBarCommandFactoryBase(GridToolBarSettings settings, Grid<T> grid)
Methods
Adds a command that triggers the edit state of currently selected item. To work as expected, the grid should have the Selectable configuration enabled. If multiple selection is enabled, the item which will be edited is the last selected one.
public GridToolBarCommandBuilder AIAssistant()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.
Adds a command that cancels the changes to the dataItem that is being currenly edited.
public GridToolBarCommandBuilder CancelEdit()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.
Adds a command that enables the user to change the visibillity of the Grid's columns.
public GridToolBarCommandBuilder ColumnChooser()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.
Adds a global column menu to the ToolBar.
public GridToolBarCommandBuilder Columns()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.
Defines a create command.
public GridToolBarCommandBuilder Create()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.
Defines a custom command.
public GridToolBarCustomCommandBuilder Custom()
GridToolBarCustomCommandBuilder
Returns a GridToolBarCustomCommandBuilder instance for further configuration of the command.
Adds a command that removes the selected item. To work as expected, the grid should be have the Selectable configuration enabled. If multiple selection is enabled, the item which will be remoed is the last selected one.
public GridToolBarCommandBuilder Destroy()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.
Adds a command that triggers the edit state of currently selected item. To work as expected, the grid should have the Selectable configuration enabled. If multiple selection is enabled, the item which will be edited is the last selected one.
public GridToolBarCommandBuilder Edit()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.
Represents a command which exports the current grid data to Excel.
public GridToolBarCommandBuilder Excel()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.
Adds a command that enables the user to use the filtering functionallity of the Grid.
public GridToolBarFilterCommandBuilder Filter()
GridToolBarFilterCommandBuilder
Returns a GridToolBarFilterCommandBuilder instance for further configuration of the command.
Adds a command that enables the user to use the grouping functionallity of the Grid
public GridToolBarGroupCommandBuilder Group()
GridToolBarGroupCommandBuilder
Returns a GridToolBarGroupCommandBuilder instance for further configuration of the command.
Adds a DropDownList to the ToolBar that allows the user to customize the pasting behavior.
public void Paste()
Represents a command which exports the current grid data to PDF.
public GridToolBarCommandBuilder Pdf()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.
Defines a save command.
public GridToolBarSaveCommandBuilder Save()
Returns a GridToolBarSaveCommandBuilder instance for further configuration of the command.
Defines a custom command.
public GridToolBarSearchCommandBuilder Search()
GridToolBarSearchCommandBuilder
Returns a GridToolBarSearchCommandBuilder instance for further configuration of the command.
Adds a checkbox to the ToolBar that allows the user to select all items. Requires enabled checkbox selection and multiple row selection
public void SelectAll()
Adds a separator to the ToolBar.
public void Separator()
Adds a SmartBox command to the Grid ToolBar. The SmartBox provides search, semantic search, and AI assistant capabilities.
public void SmartBox()
Adds a command that enables the user to use the sorting functionallity of the Grid.
public GridToolBarSortCommandBuilder Sort()
Returns a GridToolBarSortCommandBuilder instance for further configuration of the command.
Adds a spacer to the ToolBar.
public void Spacer()
Adds a command that saves the changes to the dataItem that is being currenly edited. Applicable when using InLine Editing.
public GridToolBarCommandBuilder Update()
Returns a GridToolBarCommandBuilder instance for further configuration of the command.