kendo-labs / dlinq-helpers

Add server paging, filtering and sorting via Dynamic Linq
70 stars 70 forks source link

Support for Kendo UI 'isnull' and 'isnotnull' filters #30

Open asteffes opened 7 years ago

asteffes commented 7 years ago

Kendo UI grid supports filtering columns based on 'NULL' or 'Not NULL' values.

These grid filters pass serialized 'Filter' objects to the server with string operators like 'isnull' and 'isnotnull' for the specified columns.

The Kendo.DynamicLinq.Filter collection of operators does not contain the 'isnull' or 'isnotnull' operators, and therefore there is an exception thrown when attempting to evaluate these filters using the ToDataSourceResult IQueryable extension method.

How can we gain support for these Kendo UI grid filters 'isnull' and 'isnotnull'?

Hashemalrifai commented 4 years ago

Hi, I have the same issue, and I can see this PR #23 Can anyone review and merge to master?