Defines the fluent interface for configuring the filterable cell in a Grid column.
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
Configures the DataSource.
public GridColumnFilterableCellSettingsBuilder BindTo(IEnumerable dataSource)
The data of the DataSource.
Returns:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
Configures the DataSource options.
public GridColumnFilterableCellSettingsBuilder DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
The DataSource configurator action.
Returns:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
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:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
Specifies the delay of the AutoComplete suggestions when the column is of type string.
public GridColumnFilterableCellSettingsBuilder Delay(double delay)
The delay value.
Returns:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
Specifying if the cell should be enabled.
public GridColumnFilterableCellSettingsBuilder Enabled(bool value)
If 'true' - encoded, otherwise not.
Returns:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
Specifies the width of the input before it is turned into a widget.
public GridColumnFilterableCellSettingsBuilder InputWidth(int inputWidth)
The input width
Returns:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
Specifies the MinLength option of the AutoComplete suggestions when the column is of type string.
public GridColumnFilterableCellSettingsBuilder MinLength(int minLength)
The minimum length
Returns:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
Specifies the default operator that will be used for the cell filtering.
public GridColumnFilterableCellSettingsBuilder Operator(string defaultOperator)
Default operator.
Returns:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
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:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
Specifies the filter option of the AutoComplete suggestions when the column is of type string.
public GridColumnFilterableCellSettingsBuilder SuggestionOperator(FilterType filterType)
The filter type
Returns:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
Sets JavaScript function which to modify the UI of the filter input.
public GridColumnFilterableCellSettingsBuilder Template(Func<object, object> handler)
GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.
Sets JavaScript function which to modify the filter input used for Row filtering.
public GridColumnFilterableCellSettingsBuilder Template(string handler)
JavaScript function name
Returns:GridColumnFilterableCellSettingsBuilder
Returns the current GridColumnFilterableCellSettingsBuilder instance for method chaining.