Defines the fluent interface for configuring toolbar custom command.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class GridToolBarCustomCommandBuilder : GridToolBarCommandBuilderBase<GridToolBarCustomCommand, GridToolBarCustomCommandBuilder>
Inheritance: objectGridToolBarCommandBuilderBase<GridToolBarCustomCommand, GridToolBarCustomCommandBuilder>GridToolBarCustomCommandBuilder
Inherited Members
Constructors
Initializes a new instance of the GridToolBarCustomCommandBuilder class.
public GridToolBarCustomCommandBuilder(GridToolBarCustomCommand command)
The GridToolBarCustomCommand instance.
Methods
Sets the toolbar command template.
public void ClientTemplate(string template)
The action defining the template.
Sets the toolbar command template.
public GridToolBarCustomCommandBuilder ClientTemplate<TModel>(TemplateBuilder<TModel> template)
The template component that will be set for the command template.
Returns:GridToolBarCustomCommandBuilder
Returns the current GridToolBarCustomCommandBuilder instance for method chaining.
Sets the toolbar command template handler.
public GridToolBarCustomCommandBuilder ClientTemplateHandler(string handler)
GridToolBarCustomCommandBuilder
Returns the current GridToolBarCustomCommandBuilder instance for method chaining.
Sets the id of the script element which contains the client-side toolbar command template.
public void ClientTemplateId(string template)
The ID of script that will be rendered for the toolbar command template.
Sets the toolbar command template handler.
public GridToolBarCustomCommandBuilder ClientTemplateView(IHtmlContent value)
The partial view that will be rendered for the toolbar command template.
Returns:GridToolBarCustomCommandBuilder
Returns the current GridToolBarCustomCommandBuilder instance for method chaining.
Sets the command name.
public GridToolBarCustomCommandBuilder Name(string name)
The name of the command
Returns:GridToolBarCustomCommandBuilder
Returns the current GridToolBarCustomCommandBuilder instance for method chaining.