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

Where is the "ClearButton" method in the fluent interface

1 Answer 93 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 21 Oct 2016, 06:52 PM

Hello,

I'm using version 2016.3.914.545, which I believe is the latest version, and the "ClearButton" method is not available as described by the Telerik docs: http://docs.telerik.com/kendo-ui/api/aspnet-mvc/Kendo.Mvc.UI.Fluent/AutoCompleteBuilder#methods-ClearButton(System.Boolean)

Please advise.

In addition, is there a default way to have this control set focus to itself when the 'ClearButton' is pressed or do I have to do something custom in the 'Change' event?

Thanks,
Mike

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Oct 2016, 03:06 PM
Hi Mike,

You can disable the X button with the following CSS class

.k-icon.k-i-close { display: none; }

or through the autocomplete widget client API -> the clearButton configuration option.

There is also a logged Git issue for the ClearButton server setting.

Best regards,
Rumen
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
AutoComplete
Asked by
Mike
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or