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
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
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.