Defines the fluent interface for configuring bound columns filterable options
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class GridBoundColumnFilterableBuilder : GridFilterableSettingsBuilderBase<GridBoundColumnFilterableBuilder>
Inheritance: objectGridFilterableSettingsBuilderBase<GridBoundColumnFilterableBuilder>GridBoundColumnFilterableBuilder
Inherited Members
Constructors
Initializes a new instance of the GridBoundColumnFilterableBuilder class.
public GridBoundColumnFilterableBuilder(GridBoundColumnFilterableSettings settings, ViewContext viewContext, IUrlGenerator urlGenerator)
The column.
viewContextViewContextThe view context.
urlGeneratorIUrlGeneratorThe URL generator.
Methods
Provide IEnumerable that will be used as DataSource for Multi CheckBox filtering on this column
public GridBoundColumnFilterableBuilder BindTo(IEnumerable dataSource)
Data of the DataSource
Returns:GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Configures the column filter cell
public GridBoundColumnFilterableBuilder Cell(Action<GridColumnFilterableCellSettingsBuilder> configurator)
The configuration of the cell.
Returns:GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Enables / disabled the CheckAll checkboxes when Multi Checkbox filtering is enabled.
public GridBoundColumnFilterableBuilder CheckAll(bool value)
GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Configures the DataSource options.
public GridBoundColumnFilterableBuilder DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
The DataSource configurator action.
Returns:GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Sets the id/name of the used DataSource.
public GridBoundColumnFilterableBuilder DataSource(string dataSourceId)
The DataSource object ID.
Returns:GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Toggles between case-insensitive (default) and case-sensitive searching.
public GridBoundColumnFilterableBuilder IgnoreCase(bool value)
If 'true' - ignore the case, otherwise - not.
Returns:GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Sets the template for the checkbox rendering when Multi checkbox filtering is enabled
public GridBoundColumnFilterableBuilder ItemTemplate(string handler)
The name of the handler that returns the template.
Returns:GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Enables / disabled the Multi Checkbox filtering support for this column.
public GridBoundColumnFilterableBuilder Multi(bool value)
If 'true' - Multi Checkbox filtering is enabled, if 'false' Multi Checkbox filtering is disabled.
Returns:GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Controls whether to show a search box when checkbox filtering is enabled.
public GridBoundColumnFilterableBuilder Search(bool value)
If 'true' - search is enabled, if 'false' search is disabled.
Returns:GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Sets JavaScript function which to modify the UI of the filter input.
public GridBoundColumnFilterableBuilder UI(Func<object, object> handler)
GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Sets the type of the input element of the filter menu
public GridBoundColumnFilterableBuilder UI(GridFilterUIRole role)
GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.
Sets JavaScript function which to modify the UI of the filter input.
public GridBoundColumnFilterableBuilder UI(string handler)
JavaScript function name
Returns:GridBoundColumnFilterableBuilder
Returns the current GridBoundColumnFilterableBuilder instance for method chaining.