How can we hide the clear button in a combobox?

1 Answer 110 Views
ComboBox General Discussions
John
Top achievements
Rank 1
Veteran
John asked on 20 Jan 2022, 06:49 PM | edited on 20 Jan 2022, 06:58 PM

Do we have the ability to remove the clear button on combo boxes? Currently hacking around it with css.

.k-combobox .k-clear-value { display: none !important; }

In situations where IsRequired = true this would be nice to remove.

Thanks

1 Answer, 1 is accepted

Sort by
1
Stefan
Telerik team
answered on 21 Jan 2022, 08:47 AM

Hello,

There is a property called clearButton that can be set to false to remove it:

https://stackblitz.com/edit/react-j8iccb?file=app/main.jsx

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ComboBox General Discussions
Asked by
John
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Share this question
or