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

Kendo grid customizing filter verbiage looses secondary filter field

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Casey
Top achievements
Rank 1
Casey asked on 08 Mar 2018, 04:07 PM

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")))

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 12 Mar 2018, 06:16 AM
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.
Tags
Grid
Asked by
Casey
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or