Check documentation for the latest version of dhtmlxSuite setNumberFormat DHTMLX Docs

setNumberFormat

sets a mask for formatting numeric data (works for "edn", "ron" excell only)

void setNumberFormat(string mask,number cInd,string p_sep,string d_sep);
maskstringa numeric mask; for example 0,000.00 - 1,234.56
cIndnumberthe index of a column
p_sepstringa char used as a decimal separator (point by default)
d_sepstringa char used as groups part separator (comma by default)

Available only in PRO Edition

Example

mygrid.setNumberFormat("0,000.00",index,".",",");

Back to top