This is a migrated thread and some comments may be shown as answers.

kendoFilterMenu + isnullorempty request

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bridge24
Top achievements
Rank 1
Iron
Bridge24 asked on 30 Jul 2019, 06:26 PM

Hi, I use the "general discussions" section, as there's no FilterMenu section, and I think that this component is only used inside the grid.  But, because we need to filter our datasource for the grid, and others containers, we decided to use the kendoFilterMenu directly outside of the grid.

I see that there's an operator named "isnullorempty". 
I think it's a new one, because I don't see in the dataSource doc.
Nothing in the and in the grid doc too.
The only place I read about it is in the filterMenu doc

We'll certainly use it to filter text, to manage these cases: empty string, null, or undefined.

But, undefined are not returned.

https://dojo.telerik.com/@foxontherock/UMiQoGIJ

When I filter the field "text", with "Has no value", I get 1001 and 1002 in return, not 1003.

I don't think any combination of filters can return "undefined" value?

Can we edit the original filter method to make it apply the filter to undefined also?

Or should we absolutely need to create a custom filter function?

Thank you

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 01 Aug 2019, 12:01 PM
Hello Daniel,

You should define anything as undefined, as the variable would no longer be undefined – you just defined it to something. In other words, this is not a valid configuration and approach for usage of the default functionalities of the FilterMenu.

On a side note, we are currently working on a separate Filter component which will be released with our upcoming official release.

Regards,
Nencho
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Bridge24
Top achievements
Rank 1
Iron
Answers by
Nencho
Telerik team
Share this question
or