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.
Telerik
Build great .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
Support and Learning
Productivity and Design Tools
Hi,
How can I get a textbox in the form fields with 0 decimals ?
There are always 2 decimals now.
Is teher a simple way to do it ? Preferably serverside.
Martin
Hello, Martin,
if you wish to have no trailing zeros in the input field, you can use the Format configuration of the NumericTextBox:
@(Html.Kendo().Form<FormDemoMVC.Models.FormViewModel>() .Name("exampleForm") .Items(items => { items.AddGroup() .Label("Registration Form") .Items(i => { i.Add() .Field(f => f.NumericTextBox) .Label(l => l.Text("NumericTextBox:")) .Editor(e => { e.NumericTextBox().Format("#0"); }); }); }) )
Let me know if that is what you are looking for.
Regards, Martin Progress Telerik
Тhe web is about to get a bit better!
The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.