Alexander Steitz wrote:
Hi Skar,

On Thursday 08 October 2009 skar wrote:
skar wrote:
Now, the first Enter isn't received at all, and the celleditor is
opened. And when I press enter again, the listener is called this time
and since I call stopPropagation, it doesn't reach the table, so the
celleditor is still open, which is what I want.

However, my doubt is, why doesn't the first enter get caught by this
listener?
Also, how do I get the string/value in the celleditor which is currently
open?
You get the value after the cell was edited with the "dataEdited" event. Do you need the data during the editing?
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 :)

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

Reply via email to