Derrell Lipman wrote:
You'll probably want to add the focusout handler on the actual editor,
not the cell. You can do that in the cell editor factory which creates
the editor.
Thanks a lot. I save the table instance in createCellEditor in the
editor instance and add a focusout listener. Inside, I use the table
instance and then called cancelEditing and it works fine now :)
I've only have 2 doubts now.
Instead of "cellEditor.setUserData("table", cellInfo.table);" is there
any way I can access the table instance from within the listener for the
cell editor's focusout listener?
Also, if I follow this technique, I need to override all the cell editor
types I'll need, like overriding the text, checkbox, selectbox etc. Is
there any generic way to do this? If I could somehow figure out that the
table is losing focus only to have a celleditor have the focus, then I
can continue editing, else I need to close the editor discarding any
changes. Something like
http://developer.yahoo.com/yui/examples/datatable/dt_cellediting.html.
Thanks once again for the tip :)
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel