Categories | Question details Back To List | ||
format attribute in xml Hi How can I make this work in XML? mygrid.setNumberFormat("0,000.00 EUR",2,",","."); The manual describes only the first parameter (eg. format="0.000,0"), but this is not enough for my task.I need to define which is the dot and which the comma. Thank you, Frank Answer posted by dhxSupport on Oct 01, 2009 08:13 Please check if necessary cells has "edn" or "ron" format Answer posted by Frank on Oct 01, 2009 08:20 Yes it has, but this is not my question. mygrid.setNumberFormat("0,000.00 EUR",2,",",".") works, but I would like to achieve the same behavior via XML. In the xml-attribute I could only pass the first parameter of setNumberFormat... Regards, Frank Answer posted by dhxSupport on Oct 01, 2009 09:35 You can call setNumberFormat method from xml using <beforeInit> tags. Insert following row in the <head> part of your xml: <beforeInit> <call command="setNumberFormat"> <param>0,000.00 EUR</param> <param>2</param> <param>,</param> <param>.</param> </call> </beforeInit> |