Kendo grid customizing filter verbiage looses secondary filter field

2 posts, 0 answers
  1. Casey
    Casey avatar
    4 posts
    Member since:
    Mar 2017

    Posted 08 Mar 2018 Link to this post

    We are trying to make to make our Grid date columns have the verbiage and filter options of "From" and "To". Our hope was that after updating them within the razor syntax we could still use the "AND OR" values. It appears to remove that option after we have to run the ".Operators(operators => operators.ForDate(d => d.Clear()".

     

    Is there something we are doing wrong? When seem to need to run the ".Clear()" to remove other filter options but now we only have one value we can enter. Either being "To" or "From" but not being able to do "To: (n)" [AND | OR] From:".  Is this not possible if we are customizing the filters or is there a different route we can take to acomplish this?

     

    -Thanks-

    Code Example:

    ").Filterable(filterable => filterable.Extra(false).Operators(operators => operators.ForDate(d => d.Clear().IsLessThanOrEqualTo("To").IsGreaterThanOrEqualTo("From")))

     

  2. Stefan
    Admin
    Stefan avatar
    2893 posts

    Posted 12 Mar 2018 Link to this post

    Hello, Casey,

    Thank you for the provided code.

    The second input is removed because the Filterable.Extra() property is set to false. Removing it or setting it to true should show the second input:

    https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/columns.filterable.extra

    I hope this is helpful.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top