Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Hariharan on Feb 19, 2008 07:21
open dhtmlx forum
Format Issues

Hi,

I'm loading grid through dhtmlgridFromTable. I need to format numbers and need to add $ symbol before that. How to do that in td

I tried like this <td format="$00.00" > But its not working.

Thanks,
Hariharan
Answer posted by Support on Feb 19, 2008 07:40
<td format="$00.00" type="edn">
or
<td format="$00.00" type="ron"> - if you need to have it as readonly
Answer posted by Support on Feb 19, 2008 07:41
Please beware that format specified on whole column, so you need to specify both attributes only for TD elements of first row.
Also you may need to use 
    <table forceCellTypes="true" ...
This attriubute forces strict type formatting