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

Remove filter options from grid filter column

4 Answers 2661 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mukesh
Top achievements
Rank 1
Mukesh asked on 31 Jul 2019, 11:32 AM

  In kendo react grid column level filter, I don't want to have all option instead i just want contains option for string column and equal option for numeric columns.

That should be default i don't that to be selected from drop down.

Please let me know how to achieve that.

 

4 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 02 Aug 2019, 10:21 AM
Hello Mukesh,

You can use the filterOptions property of the grid to specify the filter operators. Please see this help article for more details and runnable example:
https://www.telerik.com/kendo-react-ui/components/grid/filtering/#toc-custom-filter-operators

Regards,
Vasil
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mukesh
Top achievements
Rank 1
answered on 02 Aug 2019, 02:16 PM

I have used filterOperators but my requirement is bit different.

I even don't want filter icon and clear icon which comes by default. Is there any property to hide those icons

I have attached a scree shot for your reference. 

In the given screen shot i don't want those to filter icon. Is there any way to remove them

0
Arun
Top achievements
Rank 1
answered on 06 Aug 2019, 02:34 AM
You can remove the dropdown by CSS.

.k-filtercell-operator {
display: none
}
0
Stefan
Telerik team
answered on 06 Aug 2019, 07:32 AM
Hello, Mukesh,

The answer provided by Arun is a valid one to remove it with CSS.

Please let me know if this is not an option and we will check for other solutions.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Mukesh
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Mukesh
Top achievements
Rank 1
Arun
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or