Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI/UX Tools
CMS
Free Tools
Support
Resources
Design and Productivity Tools
Hello,
I'm creating a Numeric Textbox that should be able to accept Empty. How do I add a ClearValue button in a Numeric Textbox?
Hi Han,
In order to add a clear button in the Kendo UI NumericTextBox, add an Icon Button as a Suffix Adornment. For example:
<kendo-numerictextbox [(value)]="value"> <ng-template kendoSuffixTemplate> <button kendoButton fillMode="clear" [svgIcon]="svgClear" title="Clear" (click)="clear()"> </button> </ng-template> </kendo-numerictextbox>
public svgClear: SVGIcon = xIcon; public value: number; public clear() { this.value = null; }
Output:
In this StackBlitz example, I have added an icon button in the NumericTextBox as a suffix adornment that clears the value.
I hope this helps. Please let me know if I can further assist you.
Regards, Hetali Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.