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

DateOperatorsBuilder

Methods

Clear()

Clears the options.

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
                             .Clear()
                             .IsGreaterThan("After")
                             .IsLessThan("Before")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

IsEqualTo(System.String)

Sets the text for IsEqualTo operator filter menu item.

Parameters

message - System.String

The text of the "equal" filter operator.

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
                             .IsEqualTo("Equals")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

IsNotEqualTo(System.String)

Sets the text for IsNotEqualTo operator filter menu item.

Parameters

message - System.String

The text of the "not equal" filter operator.

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
                             .IsNotEqualTo("Not equal")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

IsGreaterThanOrEqualTo(System.String)

Sets the text for IsGreaterThanOrEqualTo operator filter menu item.

Parameters

message - System.String

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
                             .IsGreaterThanOrEqualTo("After or equal to")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

IsGreaterThan(System.String)

Sets the text for IsGreaterThan operator filter menu item.

Parameters

message - System.String

The text of the "greater than" filter operator.

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")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

IsLessThanOrEqualTo(System.String)

Sets the text for IsLessThanOrEqualTo operator filter menu item.

Parameters

message - System.String

The text of the "less than or equal" filter operator.

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
                             .IsLessThanOrEqualTo("Before or equal to")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

IsLessThan(System.String)

Sets the text for IsLessThan operator filter menu item.

Parameters

message - System.String

The text of the "less than" filter operator.

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
                             .IsLessThan("Before")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

IsNull(System.String)

Sets the text for IsNull operator filter menu item.

Parameters

message - System.String

The text of the "isnull" filter operator.

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
                             .IsNull("Null")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

IsNotNull(System.String)

Sets the text for IsNotNull operator filter menu item.

Parameters

message - System.String

The text of the "isnotnull" filter operator.

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
                             .IsNotNull("Not Null")
                         ))
                 )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )

In this article
Not finding the help you need?