:: Forum >>

What are the Differnt wire format for date Data input.?

I am using the date in some columns but i am not getting proper sorted value Please tell me..
Wednesday, April 21, 2004
If you are using XML data - you have to use Active.Formats.Date class for data transformations. Look at /examples/grid/xml-dataset.htm or /examples/grid/xml-rss-msdn.htm. Supported wire formats are RFC822, ISO8061, and anything that Date.parse() can understand (default).

If you are using JS array - you need to define both data/text (string, for display) and data/value (number, for sorting) properties.

var myText = function(i, j){return myData[i][j]};
var myValue = function(i, j){return Date.parse(myData[i][j])};

obj.setDataProperty("text", myText);
obj.setDataProperty("value", myValue);
Alex (ActiveWidgets)
Wednesday, April 21, 2004

This topic is archived.

Back to support forum

Forum search