FilterBuilder<T>
Defines the fluent API for configuring the Kendo UI Filter
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class FilterBuilder<T> : WidgetBuilderBase<Filter<T>, FilterBuilder<T>>, IHtmlContent where T : class
Inheritance: objectHelperResultWidgetBuilderBase<Filter<T>, FilterBuilder<T>>FilterBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the FilterBuilder<T> 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 for ApplyButton
Returns:Returns the current FilterBuilder<T> instance.
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:Returns the current FilterBuilder<T> instance.
Configures the client-side events.
public FilterBuilder<T> Events(Action<FilterEventBuilder> configurator)
The client events action.
Returns:Returns the current FilterBuilder<T> instance.
If set to true the filter will visualize the filter expression that will be applied to the datasource.
public FilterBuilder<T> ExpressionPreview()
Returns the current FilterBuilder<T> instance.
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 for ExpressionPreview
Returns:Returns the current FilterBuilder<T> instance.
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 FilterFieldFactory<T> for the fields setting.
Returns:Returns the current instance of FilterBuilder<T> .
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)
The value for Expression
Returns:Returns the current FilterBuilder<T> instance.
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:Returns the current FilterBuilder<T> instance.
Defines the value of the logical operator at the root level of the filter expression.
public FilterBuilder<T> MainLogic(FilterCompositionLogicalOperator value)
The value for MainLogic
Returns:Returns the current FilterBuilder<T> instance.
The text messages displayed in the filter. Use it to customize or localize the filter messages.
public FilterBuilder<T> Messages(Action<FilterMessagesSettingsBuilder<T>> configurator)
The FilterMessagesSettingsBuilder<T> for the messages setting.
Returns:Returns the current instance of FilterBuilder<T> .
The text of the filter operators displayed in the filter.
public FilterBuilder<T> Operators(Action<FilterOperatorsSettingsBuilder<T>> configurator)
The configurator for the operators setting.
Returns:Returns the current FilterBuilder<T> instance.