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

AutoComplete Clear Button

1 Answer 531 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tejas
Top achievements
Rank 1
Tejas asked on 06 Mar 2019, 06:08 AM
Hi, I want to implement enable and disable of the clear button (x at the end) on AutoComplete. I am unable to find any property to set for KendoReact component. I found one here at https://docs.telerik.com/kendo-ui/api/javascript/ui/autocomplete/configuration/clearbutton but thats for javascript. Could you help me implement it in React?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 06 Mar 2019, 09:46 AM
Hello, Tejas,

Currently, this can be achieved by dynamically adding and removing a class from the AutoComplete that will hide the "x" with CSS:

I made an example demonstrating this:

https://stackblitz.com/edit/react-1y2gta?file=app/main.js

Also, a feature request can be logged for a built-in property:

https://feedback.telerik.com/kendo-react-ui

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
Tejas
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or