Kendo.Mvc.UI.Fluent.FilterBuilder

Defines the fluent API for configuring the Kendo UI Filter

Methods

FilterExpression(System.Action<Kendo.Mvc.UI.Fluent.DataSourceFilterDescriptorFactory<T>>)

An object which represents a filter expression which the kendo.data.DataSource can use to filter the data.

Parameters

value System.Action<Kendo.Mvc.UI.Fluent.DataSourceFilterDescriptorFactory>

The value for Expression

FilterExpression(Kendo.Mvc.CompositeFilterDescriptor)

An object which represents a filter expression which the kendo.data.DataSource can use to filter the data.

Parameters

value Kendo.Mvc.CompositeFilterDescriptor

The value for Expression

ApplyButton(System.Boolean)

If set to true the filter will display a button which when clicked will apply filtering over the datasource.

Parameters

value System.Boolean

The value for ApplyButton

ApplyButton

If set to true the filter will display a button which when clicked will apply filtering over the datasource.

DataSource(System.String)

The data source to which the widget will apply a filter. Should be an existing kendo.data.DataSource instance.

Parameters

value System.String

The value for DataSource

ExpressionPreview(System.Boolean)

If set to true the filter will visualize the filter expression that will be applied to the datasource.

Parameters

value System.Boolean

The value for ExpressionPreview

ExpressionPreview

If set to true the filter will visualize the filter expression that will be applied to the datasource.

Fields(System.Action<Kendo.Mvc.UI.Fluent.FilterFieldFactory<T>>)

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.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.FilterFieldFactory>

The configurator for the fields setting.

MainLogic(Kendo.Mvc.FilterCompositionLogicalOperator)

Defines the value of the logical operator at the root level of the filter expression.

Parameters

value Kendo.Mvc.FilterCompositionLogicalOperator

The value for MainLogic

Messages(System.Action<Kendo.Mvc.UI.Fluent.FilterMessagesSettingsBuilder<T>>)

The text messages displayed in the filter. Use it to customize or localize the filter messages.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.FilterMessagesSettingsBuilder>

The configurator for the messages setting.

Operators(System.Action<Kendo.Mvc.UI.Fluent.FilterOperatorsSettingsBuilder<T>>)

The text of the filter operators displayed in the filter.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.FilterOperatorsSettingsBuilder>

The configurator for the operators setting.

Events(System.Action<Kendo.Mvc.UI.Fluent.FilterEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.FilterEventBuilder>

The client events action.

Example (ASPX)

@(Html.Kendo().Filter()
    .Name("Filter")
    .Events(events => events
        .Change("onChange")
    )
)
In this article
Not finding the help you need?