Provides a fluent interface for configuring Grid column filterable cell settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class GridColumnFilterableCellSettingsBuilder
Inheritance: objectGridColumnFilterableCellSettingsBuilder
Inherited Members
Constructors
Initializes a new instance of the GridColumnFilterableCellSettings class.
public GridColumnFilterableCellSettingsBuilder(GridColumnFilterableCellSettings settings, ViewContext viewContext, IUrlGenerator urlGenerator)
The settings.
viewContextViewContextThe ViewContext object
urlGeneratorIUrlGeneratorThe IUrlGenerator generator.
Methods
public GridColumnFilterableCellSettingsBuilder BindTo(IEnumerable dataSource)
Configures the DataSource options.
public GridColumnFilterableCellSettingsBuilder DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
The DataSource configurator action.
Returns:Specifies the name of the field which will be used to show the suggestions when using Custom DataSource.
public GridColumnFilterableCellSettingsBuilder DataTextField(string dataTextField)
The dataTextField
Returns:Specifies the delay of the AutoComplete suggestions when the column is of type string.
public GridColumnFilterableCellSettingsBuilder Delay(double delay)
The delay value.
Returns:Specifying if the cell should be enabled.
public GridColumnFilterableCellSettingsBuilder Enabled(bool value)
If 'true' - encoded, otherwise not.
Returns:Specifies the width of the input before it is turned into a widget.
public GridColumnFilterableCellSettingsBuilder InputWidth(int inputWidth)
The input width
Returns:Specifies the MinLength option of the AutoComplete suggestions when the column is of type string.
public GridColumnFilterableCellSettingsBuilder MinLength(int minLength)
The minimum length
Returns:Specifies the default operator that will be used for the cell filtering.
public GridColumnFilterableCellSettingsBuilder Operator(string defaultOperator)
Default operator.
Returns:Specifies whether to show or hide the DropDownList with the operators.
public GridColumnFilterableCellSettingsBuilder ShowOperators(bool showOperators)
The value indicating if filter operator should be displayed
Returns:Specifies the filter option of the AutoComplete suggestions when the column is of type string.
public GridColumnFilterableCellSettingsBuilder SuggestionOperator(FilterType filterType)
The filter type
Returns:Sets JavaScript function which to modify the filter input used for Row filtering.
public GridColumnFilterableCellSettingsBuilder Template(string handler)
JavaScript function name
Returns: