Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Anthony Nahas on Aug 18, 2009 13:13
open dhtmlx forum
setNumberFormat doesn't work on cells?

Not sure why but setNumberFormat with an index and format string of "1000.0" doesn't seem to work at all. All I want is 1 decimal place for all of the cells within a grid (and the footer if possible), how can I do this? Any examples possibly? The cell types are rotxt, but contain numbers (seemed like the most relevant type of

setMathRound only seems to work on autocalculated columns...
Answer posted by Support on Aug 20, 2009 06:49
The
    grid.setNumberFormat("0.0", column_index)
will cause the necessary effect.

Be sure that column in question has edn  or ron type

>>and the footer if possible
Will affect only auto-calculated values in footer.

>> The cell types are rotxt,
Need to be changed to the ron