how can set formatted currency apposed boring int? ($0.00 instead of 0)
columns.bound(o => o.basepremium).title("base prem:").clienttemplate("#= basepremium #" + "<input class='k-input k-textbox' type='hidden' name='locations[#= index(data)#].basepremium' value='#= basepremium #' />" ).format("{0:c}"); the .format @ end doesnt seem trick.
since you're using .clienttemplate disregard .format(). instead use this:
#:kendo.tostring(basepremium, 'c2')# which equal $123.45
you can read more here: http://docs.kendoui.com/getting-started/framework/globalization/numberformatting
Comments
Post a Comment