New to Telerik UI for ASP.NET Core? Download free 30-day trial

FilterableOperatorsBuilder

Methods

ForString(System.Action)

Configures messages for string operators.

Parameters

configurator - System.Action<StringOperatorsBuilder>

The texts of the filter operators displayed for columns bound to string fields.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);  
                })
                .Filterable(filterable => filterable
                     .Extra(false)
                     .Operators(operators => operators
                        .ForString(str => str
                            .IsEqualTo("Equal to")
                            .IsNotEqualTo("Not equal to")
                        ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

ForNumber(System.Action)

Configures messages for number operators.

Parameters

configurator - System.Action<NumberOperatorsBuilder>

The texts of the filter operators displayed for columns bound to number fields.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);  
                })
                .Filterable(filterable => filterable
                     .Extra(false)
                     .Operators(operators => operators
                         .ForNumber(str => str
                             .IsEqualTo("Equal to")
                             .IsNotEqualTo("Not equal to")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

ForDate(System.Action)

Configures messages for date operators.

Parameters

configurator - System.Action<DateOperatorsBuilder>

The texts of the filter operators displayed for columns bound to date fields.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);  
                })
                .Filterable(filterable => filterable
                     .Extra(false)
                     .Operators(operators => operators
                         .ForDate(str => str
                             .IsGreaterThan("After")
                             .IsLessThan("Before")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

ForEnums(System.Action)

Configures messages for enums operators.

Parameters

configurator - System.Action<EnumOperatorsBuilder>

The texts of the enum filter operators displayed for columns which have their values option set.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);  
                })
                .Filterable(filterable => filterable
                     .Extra(false)
                     .Operators(operators => operators
                         .ForEnums(str => str
                             .IsEqualTo("Equal to")
                             .IsNotEqualTo("Not equal to")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

In this article
Not finding the help you need?