FilterBuilder<T>
Defines the fluent API for configuring the Kendo Filter for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class FilterBuilder<T> : WidgetBuilderBase<Filter<T>, FilterBuilder<T>>, IHtmlString where T : class
Inheritance: objectWidgetBuilderBase<Filter<T>, FilterBuilder<T>>FilterBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the Filter class.
Methods
If set to true the filter will display a button which when clicked will apply filtering over the datasource.
If set to true the filter will display a button which when clicked will apply filtering over the datasource.
public FilterBuilder<T> ApplyButton(bool value)
The value that configures the applybutton.
Returns:The data source to which the widget will apply a filter. Should be an existing kendo.data.DataSource instance.
public FilterBuilder<T> DataSource(string value)
The value for DataSource
Returns:public FilterBuilder<T> Events(Action<FilterEventBuilder> configurator)
If set to true the filter will visualize the filter expression that will be applied to the datasource.
If set to true the filter will visualize the filter expression that will be applied to the datasource.
public FilterBuilder<T> ExpressionPreview(bool value)
The value that configures the expressionpreview.
Returns:The configuration of the filter fields. An array of JavaScript objects that hold information regarding the filter field, it's editor, default values used for filter and etc.
public FilterBuilder<T> Fields(Action<FilterFieldFactory<T>> configurator)
The configurator for the fields setting.
Returns:An object which represents a filter expression which the kendo.data.DataSource can use to filter the data.
public FilterBuilder<T> FilterExpression(Action<DataSourceFilterDescriptorFactory<T>> configurator)
An object which represents a filter expression which the kendo.data.DataSource can use to filter the data.
public FilterBuilder<T> FilterExpression(CompositeFilterDescriptor value)
The value for Expression
Returns:Defines the value of the logical operator at the root level of the filter expression.
public FilterBuilder<T> MainLogic(FilterCompositionLogicalOperator value)
The value that configures the mainlogic.
Returns:public FilterBuilder<T> Messages(Action<FilterMessagesSettingsBuilder<T>> configurator)
The text of the filter operators displayed in the filter.
public FilterBuilder<T> Operators(Action<FilterOperatorsSettingsBuilder> configurator)
The configurator for the operators setting.
Returns: