On Sun, May 13, 2012 at 3:51 AM, Debora Lopez <[email protected]> wrote:
> Hi,
>
> I have a table with a Date column defined with a cell renderer:
> qx.ui.table.cellrenderer.Date.
> I also have defined a format for the date with qx.util.format.DateFormat.
>
> The cells in this column can be edited. (Extra info not really related to
> problem I think: If being edited, a window with qx.ui.control.DateChooseris
> displayed.)
>
> Here's my problem:
> While the cell is editable (after dbl-click and until something else is
> clicked), the cell's value displays as a long string (equivalent of
> javascript Date.toString() value) which is not the format defined.
> As soon as the cell is no longer editable - the cell displays with the
> correct qx.util.format.DateFormat format.
>
> Is there any possible way to correct this? Do I need to create a
> cellEditor for a date and give it my format? Has anybody done this? Can
> anybody help me get started, please?
>
How are you opening your window with the DateChooser? The proper way to do
that is to take advantage of "Modal window cell editor". See this example,
where the "Number" field is editable with a cell editor in a modal window:
http://demo.qooxdoo.org/devel/demobrowser/index.html#table~Table_Window_Editor.html
Click on the JS Code button at the top right, and then search for
ModalCellEditorFactory, which is the class that defines the cell editor. A
modal cell editor is one that is an instanceof qx.ui.window.Window. In your
modal cell editor window, you can place the DateChooser.
Hope that helps,
Derrell
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel