I need to clear the search box input field to null or blank through a function call in angular

1 Answer 2043 Views
AutoComplete Window
Hemanth
Top achievements
Rank 1
Hemanth asked on 07 Mar 2022, 08:28 AM
I need to clear the kendo searchbox input field to null or blank through a function call in angular 9

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 09 Mar 2022, 12:36 PM

Hi Hemanth,

The developer can utilize the value input field of the AutoComplete component that will allow being cleared depending on a condition or executed function. Please check the following example demonstrating clearing the value based on a button click:

https://stackblitz.com/edit/angular-im6u9q?file=app/app.component.ts

Value binding documentation - https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/

I hope this helps.

Regards,
Yanmario
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
AutoComplete Window
Asked by
Hemanth
Top achievements
Rank 1
Answers by
Yanmario
Telerik team
Share this question
or