Following the example of this page:
https://ej2.syncfusion.com/aspnetmvc/documentation/spreadsheet/illustrations?cs-save-lang=1&cs-lang=razor
I've created a function to set the number format of cells like currency. I do not want to hard code the format of the currency, because I want this to be dynamic and adapt to the user's language.
function spreadsheet_Created() {
this.numberFormat(getFormatFromType("Currency"), "C3:J15");
}
But when I run this code I get a error, saying that getFormatFromType is not defined:
Uncaught ReferenceError: getFormatFromType is not defined
at t.spreadsheet_Created ((index):299:18)
at e.notify (ej2.min.js:10:737776)
at e.trigger (ej2.min.js:10:766841)
at e.triggerCreatedEvent (ej2.min.js:10:16590345)
at ej2.min.js:10:16589940
at ej2.min.js:10:652892
How can this be configuration achieved (either of server or client side)?