Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Format number with no decimal places and no comma in kendo ui in jquery

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}'
}
like image 670
Decimal Avatar asked May 07 '18 05:05

Decimal


People also ask

How do I remove decimal from Kendo grid?

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".

How do I restrict decimal in kendo Numerictextbox?

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.


1 Answers

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

like image 91
Decimal Avatar answered Oct 11 '22 18:10

Decimal