Defines the fluent interface for configuring toolbar custom command.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
The type of the model
Syntax:
public class GridToolBarCustomCommandBuilder<T> : GridToolBarCommandBuilderBase<T, GridToolBarCustomCommand<T>, GridToolBarCustomCommandBuilder<T>> where T : class
Inheritance: objectGridToolBarCommandBuilderBase<T, GridToolBarCustomCommand<T>, GridToolBarCustomCommandBuilder<T>>GridToolBarCustomCommandBuilder<T>
Inherited Members
Constructors
public GridToolBarCustomCommandBuilder(GridToolBarCustomCommand<T> command)
Methods
Sets command action.
public GridToolBarCustomCommandBuilder<T> Action(RouteValueDictionary routeValues)
The route values
Returns:Sets command action and controller.
Sets command action.
public GridToolBarCustomCommandBuilder<T> Action<TController>(Expression<Action<TController>> controllerAction) where TController : Controller
Sets the toolbar command template.
public GridToolBarCustomCommandBuilder<T> ClientTemplate(string template)
The action defining the template.
Returns:Sets the toolbar command template.
public GridToolBarCustomCommandBuilder<T> ClientTemplate<TModel>(TemplateBuilder<TModel> template)
The template component that will be set for the command template.
Returns:Sets the toolbar command template.
public GridToolBarCustomCommandBuilder<T> ClientTemplateHandler(string handler)
The handler defining the template.
Returns:Sets the id of the script element which contains the client-side toolbar command template.
public GridToolBarCustomCommandBuilder<T> ClientTemplateId(string template)
The ID of script that will be rendered for the toolbar command template.
Returns:Sets the toolbar command template.
public GridToolBarCustomCommandBuilder<T> ClientTemplateView(IHtmlString value)
The partial view that will define the template.
Returns:Sets the command name.
public GridToolBarCustomCommandBuilder<T> Name(string name)
The name of the command
Returns:Sets command route and route values.
public GridToolBarCustomCommandBuilder<T> Route(string routeName, RouteValueDictionary routeValues)
The route name
routeValuesRouteValueDictionaryThe route values
Returns:Sets command route.
public GridToolBarCustomCommandBuilder<T> Route(string routeName)
The route name
Returns:Sets command absolute URL.
public GridToolBarCustomCommandBuilder<T> Url(string value)
The URL
Returns: