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

Column Filter Menu With (not visible) Implied Operator

2 Answers 993 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 25 Jul 2014, 07:59 PM
I'm trying to add filters to a few columns on my grid.  I've got the data sources all setup and the filterable: ui working fine.  My issue is that when I click on the filter icon on the menu, all I want to see is the DropDownList and the Filter/Clear buttons.  I don't want to see the drop down with the list of operators - I always want the operator to be "eq".

Here are my latest tries at configuration that still don't work (first is the filterable, second is the columns.filterable)
  filterable: { extra: false, mode: 'menu' }
  filterable: { ui: companyFilter, cell: { operator: 'eq', showOperators: false}}

where companyFilter creates a kendo DropDownList with the dataSource being a variable with the distinct companies

Thanks,
--Ed

2 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 25 Jul 2014, 08:30 PM
I've spent the last hour trying to make this work as well. As best I can tell, the showOperators option only seems to work with mode: 'row'. I didn't see that restriction in the documentation so not sure if it's an issue or working as intended.
0
Accepted
Petur Subev
Telerik team
answered on 29 Jul 2014, 03:28 PM
Hello Ed,

Indeed the cell (the description will be updated soon) options are just for the row filtering mode.Sadly there is still no such option to hide the operators for the filter menu mode.

As a work-around you can use the menuInit event like explained in this forum thread:

http://www.telerik.com/forums/remove-or-hide-filter-operators-dropdown-list

I am sorry for any inconvenience caused.

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Ed
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 1
Petur Subev
Telerik team
Share this question
or