Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Agile on Nov 14, 2008 06:18
open dhtmlx forum
Price column formating

Hi Team,

I am using price column in grid.I want to format the value of column as $12,300.00
And also I am using mygrid.setColSorting("int") and filter as #numeric_filter.
The sorting and filtering should work in this case.

Thanks,
-Agile
Answer posted by Support on Nov 14, 2008 06:29
You need to set column as "edn" instead of "price" and use 
     grid.setNumberFormat("$0,000.00",0)

In such case you can provide raw numbers in origianal dataset - they will be correctly formated and still be available for int-like sorting|filtering.