3 Answers, 1 is accepted
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/.
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.
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/.