Is there any way to specify the format of each column like number, currency, timestamp etc.
Thanks in advance.
It is made this way because formatting with client-side script is relatively slow. You will get much better performance if you make formatting on the server and send the data to the client in 'ready-for-display' form.
However you can do the formatting on the client-side as well. ActiveWidgets has two classes which can help: Active.Formats.Number and Active.Formats.Date. There is also an example how you can use them with XML data model (/examples/grid/xml - array of records.htm)
Here is how you can format the date using Active.Formats.Date class:
var shortDate = new Active.Formats.Date;
var date = (new Date).getTime(); //date as milliseconds from 1.1.1970
var text = shortDate.valueToText(date);
" undefined ". I can't code to save my life.
Is there a way to have those blank fields show up as just blank?
You have my graditude.
How to format data when we are reading from a CSV file???
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.