I'm working with a currency column that looks like this:
{
field: 'INVOICE_AMOUNT_ORIGINAL',
title: $translate.instant('invoiceAmount'),
format: '{0:n}',
template: '#= currency(dataItem.INVOICE_AMOUNT_ORIGINAL)#',
headerTemplate: '{{ \'invAmount\' | translate }}',
attributes: {
style: 'text-align: right;'
},
width: 115
}
Additionally, I have a function:
function currency(currencyValue) {
kendo.culture('de-DE');
kendo.toString(currencyValue, 'c2');
}
Despite using the correct syntax in the template, the function is not being called.
The goal is to pass values such as de-DE or en-US in the template via a function so that it can dynamically change in the Kendo Grid based on user preference.
What could be going wrong in my approach?