Alexander Steitz wrote:
Hi skar,
On Thursday 08 October 2009 skar wrote:
Yes, I needed the data during editing, so that upon "enter", I can pass
the new data to server and if it says ok I can save this new data into
the model.
I could get the cell editor using the table's pane's cellfactory
private/protected vars. But I didn't feel comfortable, so am using
dataEdited event and if server says ok, no problem. Else I'm setting the
row to old data and starting the celleditor again. Kinda round about and
hairy, but that's what I need :)
Unfortunately it does not get a public API for the celleditor, so you can't
easily get the current value of the editor.
Working with private methods is evil, since the optimizing done by the
generator would break your code in the build version.
The only solution is to subclass or to use a mixin / patch to get the desired
behaviour.
Yup, it seems subclassing seems the ideal way. I'll postpone that for
another day, as the current behavior though not ideal is good enough :)
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