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 settings.
viewContextViewContextThe ViewContext object
urlGeneratorIUrlGeneratorThe IUrlGenerator 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:Configures the column filter cell
public GridBoundColumnFilterableBuilder Cell(Action<GridColumnFilterableCellSettingsBuilder> configurator)
The configuration of the cell.
Returns:Enables / disabled the CheckAll checkboxes when Multi Checkbox filtering is enabled.
Configures the DataSource options.
public GridBoundColumnFilterableBuilder DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
The DataSource configurator action.
Returns:Sets the id/name of the used DataSource.
public GridBoundColumnFilterableBuilder DataSource(string DataSourceId)
The DataSource object ID.
Returns:Toggles between case-insensitive (default) and case-sensitive searching.
public GridBoundColumnFilterableBuilder IgnoreCase(bool value)
If 'true' - ignore the case, otherwise - not.
Returns: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: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: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:Sets the type of the input element of the filter menu
public GridBoundColumnFilterableBuilder UI(GridFilterUIRole role)
The filter role.
Returns:Sets JavaScript function which to modify the UI of the filter input.
public GridBoundColumnFilterableBuilder UI(string handler)
JavaScript function name
Returns: