Provides a fluent interface for configuring Grid custom action commands.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
The type of the data model.
Syntax:
public class GridCustomActionCommandBuilder<T> : GridActionCommandBuilderBase<GridCustomActionCommand<T>, GridCustomActionCommandBuilder<T>> where T : class
Inheritance: objectGridActionCommandBuilderBase<GridCustomActionCommand<T>, GridCustomActionCommandBuilder<T>>GridCustomActionCommandBuilder<T>
Inherited Members
Constructors
public GridCustomActionCommandBuilder(GridCustomActionCommand<T> command)
Methods
Sets the controller action that will be executed when the custom action command is invoked.
public GridCustomActionCommandBuilder<T> Action(string actionName, string controllerName, object routeValues)
The name of the action method.
controllerNamestringThe name of the controller.
routeValuesobjectAn anonymous object containing additional route values to include in the action URL.
Returns:Sets the controller action that will be executed when the custom action command is invoked.
public GridCustomActionCommandBuilder<T> Action(string actionName, string controllerName, RouteValueDictionary routeValues)
The name of the action method.
controllerNamestringThe name of the controller.
routeValuesRouteValueDictionaryAdditional route values to include in the action URL.
Returns:Sets the name of the JavaScript function that will be executed when the custom action command is clicked.
public GridCustomActionCommandBuilder<T> Click(string handler)
The name of the JavaScript function to execute on click.
Returns:Configures the data route values that will be sent with the custom action command.
public GridCustomActionCommandBuilder<T> DataRouteValues(Action<GridDataKeyFactory<T>> factory)
The factory method that configures which data keys from the current row will be included as route values.
Returns:Sets whether the data keys of the current row should be sent when the custom action command is executed.
public GridCustomActionCommandBuilder<T> SendDataKeys(bool value)
If true, data keys will be sent; otherwise, they will not be included.
Returns:Sets whether the current state of the grid (sorting, filtering, paging) should be sent when the custom action command is executed.
public GridCustomActionCommandBuilder<T> SendState(bool value)
If true, grid state will be sent; otherwise, it will not be included.
Returns: