Posted 30 March 2022, 8:16 am EST
Hi Vamshi,
Upon investigation, we found out that you are formatting the value using general formatter in the formatNumber method(line no. 27 in app.js file). The format method formats the specified object as a string with a formatter data object. While returning from the formatNumber function, you should return the new formatted string.
Changes I have made to the code with respect to file app.js:
- Store the formatted string in a new variable called newValue(line no. 27).
- Return the formatted string from the formatNumber function (line no. 67).
- Change the order of setting the autoFitColumn.
Format Method: https://www.grapecity.com/spreadjs/docs/latest/online/SpreadJS~GC.Spread.Formatter.GeneralFormatter~format.html
Please refer to the attached sample and let us know if you need further assistance.
Regards
Ankit
features_cells_formatter_custom-formatter_JavaScript.zip