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

How to remove the second clear button of the filter?

1 Answer 913 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 27 Sep 2017, 11:35 PM

I have a question, well it could be the form of two, but either answer would be great...

I have a kendo grid with a column filter with a text box, with a contains operator and all other operators as false. I have a couple issues with the filter, if you take a look at the image below

You can see that the 2nd clear filter button is all the way over to the right, how do I remove that button or at the very least bring it over to the filter textbox? I know I can remove the inner clear button using 

this.element.find(".k-filtercell .k-autocomplete .k-clear-value").remove();     

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 Sep 2017, 11:30 AM
Hello, Chris,

All clear buttons can be removed using jQuery on the dataBound event of the widget:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-dataBound

I made an example demonstrating this:

http://dojo.telerik.com/uvahax

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 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
Chris
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or