Hey,
have your tried to date objects to your table model and not strings? Maybe
thats the point because a string sure does not have that method a plain
JavaScript data would have.
Best,
Martin
Am 06.10.2010 um 21:52 schrieb aditya siram:
> Hi all,
> I am having an issue setting the column type of a table to be a date
> using setDataCellRenderer. I get an error saying that
> "date.getFullYear" is not a function. But I have verified that the
> date format is correct by printing the date to the console.
> I have a (simplified table) like this:
> make_table : function () {
> var tablemodel = new qx.ui.table.model.Simple();
> var date_format = new qx.util.format.DateFormat("MM dd, yyyy hh:mm:ss");
> tablemodel.setColumns(["Date"]);
> tablemodel.addRows([["09 30, 2010 11:23:55"]]);
> var table = new qx.ui.table.Table(tablemodel);
> var date_renderer = new
> qx.ui.table.cellrenderer.Date("left","red","italic","normal");
> date_renderer.setDateFormat(date_format);
> table.getTableColumnModel().setDataCellRenderer(0, date_renderer);
> console.log(date_format.parse("09 30, 2010 11:23:55"));
> return table;
> }
>
> Thanks!
> -deech
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel