I have a question about dhtmlxGrid(v15 Proffessional).
Please teach the method of achieving the following examples.
Should I create a new cell type? (following example’s For [Price])
Example.
[Quantity] [UnitCost] [Price]
c1c2
10.5 1 10
20.4 1 20
3 1000 3000
Quantity: decimal digit 1
Price: QuantityUnitCost round down
Thank you.
You can use edn|ron types and setNuimberFormat to apply necessary formatting
mygrid.setColTypes(“edn,edn,ron[=c0*c1]”)
mygrid.setNumberFormat(“0.0”,0); //with decimal part
mygrid.setNumberFormat(“0”,1); //without decimal part
mygrid.setNumberFormat("$ 0.0",2); //with currency symbol