All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
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.