а

Set number of decimals points to display in grid


#1

I have decimal values in a column. The numbers are stored in the database up to 2 decimal points such as 50.00. I would like them to be displayed as 50 in the column. How do I do that?


#2

Please, try to use the “edn”/“ron” column type:
https://docs.dhtmlx.com/grid__columns_types.html#edn
https://docs.dhtmlx.com/grid__columns_types.html#ron
It allows to configure the number format using the setNumberFormat() method:
https://docs.dhtmlx.com/api__dhtmlxgrid_setnumberformat.html