How to set number formatting in kendo column if we bind 2 data values? In my example I have to bind value with unit, so I need a value written with 2 decimals. My code looks like:
{
field: "Quantity",
title: "Value ",
width: "70px",
type: "number",
format:"{0:n2}",
template: "#:Quantity# #:Unit#",
attributes:{style:"text-align:right;"}
},
Without binding it to unit it works great, but with unit I have a problem. Thanks in advance
This will format Quantity
to show as a number with 2 decimals
template: '#= kendo.toString(Quantity, "n2")# #=Unit#'
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