Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Pierre on May 19, 2009 05:53
open dhtmlx forum
Decimal/group separator setting by XML

Hello,

I have a problem using the ron/edn cell type. I want to define a format AND specific decimal/group separators. It works fine through javascript using setNumberFormat but i need to do it by xml. I used the attribute format="mask" but I can't find the attributes names for the decimal separator and group separator in the documentation.

Regards.
Answer posted by Support on May 19, 2009 06:19
Unfortunately there is no such setting, but you can ability to define custom js commands through afterInit section

<rows>
   <head>
         <column ....
         ...
         <afterInit>
               <call command="setNumberFormat"><param>0,000.0</param><param>1</param><param>,</param><param>.</param></call>
         <afterInit>
   </head>

Values of four "param" tags will be mapped to related parameters of setNumberFormat command , so you can define all the same details as in case of pure js initialization.