Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
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.