How do i format value in column of Kendo UI Grid with no decimal and no comma? I have used below code for remove decimal but now showing coma.
Thanks in advance!
{
field: "SchCall",
title: "Sch Call",
hidden: false,
width: "15%",
format: '{0:n0}'
}
Format :"{0:n0}" : If you add "n" mean number format, which add commas and second zero mean 0 decimal. So, I have used {0:0} for no decimal and no commas. I stumbled across this looking for an answer for this question for angular 2+. For me, on kendo input format was just [format]="0:0".
restrictDecimals Boolean (default: false) Specifies whether the decimals length should be restricted during typing. The length of the fraction is defined by the decimals value.
Format :"{0:n0}" : If you add "n" mean number format, which add commas and second zero mean 0 decimal.
So, I have used {0:0} for no decimal and no commas.
Reference Link : http://docs.telerik.com/kendo-ui/framework/globalization/numberformatting
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With