kendoFilterMenu + isnullorempty request

2 posts, 0 answers
  1. Bridge24
    Bridge24 avatar
    81 posts
    Member since:
    Jan 2009

    Posted 30 Jul Link to this post

    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

  2. Nencho
    Admin
    Nencho avatar
    1808 posts

    Posted 01 Aug Link to this post

    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.
Back to Top