:: Forum >>

Order by Date

I have problems to make the order per date. Grilla order by the day without taking into account the month.
Demián
Friday, July 7, 2006
You have to set date format for this column -

var myText = [
["10-May-05"],
["2-Jun-06"],
["30-Aug-04"]
];

    var date = new AW.Formats.Date;
    date.setTextFormat("d-mmm-yy");

    var obj = new AW.UI.Grid;
    obj.setCellText(myText);
    obj.setCellFormat(date, 0);

    obj.setColumnCount(1);
    obj.setRowCount(3);

    document.write(obj);


Alex (ActiveWidgets)
Sunday, July 9, 2006

This topic is archived.


Back to support forum

Forum search