Defines the base fluent interface for configuring the grid filterable settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TDataSourceBuilder
Syntax:
public abstract class GridFilterableSettingsBuilderBase<TDataSourceBuilder> where TDataSourceBuilder : GridFilterableSettingsBuilderBase<TDataSourceBuilder>
Inheritance: objectGridFilterableSettingsBuilderBase<TDataSourceBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the GridFilterableSettings class.
public GridFilterableSettingsBuilderBase(GridFilterableSettings settings)
The settings.
Methods
Enables or disables filtering
public TDataSourceBuilder Enabled(bool value)
True to set the Filterable functionality
Returns:TDataSourceBuilder
The Enabled method is useful when you need to enable filtering based on certain conditions.
Specify if the extra input fields should be visible within the filter menu. Default is true.
public TDataSourceBuilder Extra(bool value)
True to show the extra inputs, otherwise false
Returns:TDataSourceBuilder
Configures Filter menu messages.
public TDataSourceBuilder Messages(Action<FilterableMessagesBuilder> configurator)
Configure the options for the Messages in the Filter
Returns:TDataSourceBuilder
Specify the filter mode - you can choose between having separate header row and the filter menu available by clicking the icon. Default is the filter menu. Multiple filter modes can be set by combining the flags:
public TDataSourceBuilder Mode(GridFilterMode value)
If set to Row the user would be able to filter via extra row added below the headers. By default filtering is using the Menu mode.
Returns:TDataSourceBuilder
Configures the Filter menu operators.
public TDataSourceBuilder Operators(Action<FilterableOperatorsBuilder> configurator)
The text of the filter operators displayed in the filter menu.
Returns:TDataSourceBuilder