Hide value picker when grid filter is of type "isempty"

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    1 posts
    Member since:
    Nov 2009

    Posted 27 Jul 2018 Link to this post


    1.) User open page with grid
    2.) They select filter and choose one of this options: isnull, isnotnull, isempty, isnotempty.
    3.) Field for value is still visible. It should be hidden because it is useless in this context.

    Is it possible to hide it? Does the support plan to implement it in the future release?

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 30 Jul 2018 Link to this post

    Hi Daniel,

    Keeping the selected value in the DatePicker is made that way by design, because the user could decide to change the operator to something that will use the selected date. However, if you want to clear the value on some operators you could handle the "filter" event of the Grid and remove it manually:
    filter: function(e){
      if(e.filter && e.filter.filters && e.filter.filters[0].value &&
        e.filter.filters[0].operator == "isnotnull" && e.filter.filters[0].value.getDate){
        e.filter.filters[0].value = null;

    You can add the conditions for the other operators as well.

    Konstantin Dikov
    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