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

clearButton ?

3 Answers 133 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 23 Feb 2021, 08:47 PM

Hello

How to add a clearButton to the kendoTextBox control ? Same as in Autocomplete ...

Thanks.

3 Answers, 1 is accepted

Sort by
0
Accepted
Mihaela
Telerik team
answered on 26 Feb 2021, 03:07 PM

Hi Sergey,

The clear button can be added as a separate html element and appended to the wrapper of the Kendo UI TextBox widget, as follows:

var clearButton = '<span class="k-link k-link-clear" aria-label="Clear the text"><span unselectable="on" class="k-icon k-i-close"></span></span>';
          
$("#textbox").kendoTextBox();
          
$(".k-textbox").append(clearButton);

Here is a Dojo example for your reference:

https://dojo.telerik.com/ePAhOCEL

Let me know if you have any other queries and I would be happy to assist you.

 

Regards, Mihaela Lukanova 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/.

0
Sergey
Top achievements
Rank 1
answered on 26 Feb 2021, 03:12 PM

Great ! Thank you.

Would it be possible to have it as an embedded option for the control ?

to avoid extra code there ... Like it is done for autocomplete control.

Thank you.

0
Mihaela
Telerik team
answered on 01 Mar 2021, 02:17 PM

Hi Sergey,

Thank you for your suggestion to embed a "Clear" button in the Kendo UI TextBox.

You could log it as a feature request in our feedback portal:

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

Feel free to cast your vote as the more popularity the item gathers, the higher the chance of it being implemented. Also, you could follow the thread to receive email notifications on status updates.

If you have any other questions or suggestions, don't hesitate to let me know.

 

Regards, Mihaela Lukanova 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
TextBox
Asked by
Sergey
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Sergey
Top achievements
Rank 1
Share this question
or