Alexander Steitz wrote:
Hi skar,

On Thursday 08 October 2009 skar wrote:
skar wrote:
Hi,

When I press "enter" on a cell, it's in edit mode and when I press
"enter" again, the celleditor closes and focuses on the next row and
starts editing it.

I need to save the updated data to the server, before focusing on the
next row and editing it. The corresponding line seems to be line 1233
of qx/ui/table/Table.js "this.moveFocusedCell(0, 1);".

Is there any way for me to override this behavior, and just save the
new data to my server instead?
If I could somehow inherit from the table class, and have the "enter"
keypress event to myself, then I can bubble it to the parent class when
starting editing, while stopping it from bubbling when it's already
editing. Is that possible?
The easiest way (but not the most elegant) is to subclass the table class and to implement the "_onKeyPress" just like in the "Table" class except the changes concerning the editing behaviour. Far from perfect, but this would solve your problem.
Thanks for the idea. I'm currently listening to Enter with nobubble and then from there saving it to server and if successful, closing the editing, else keeping it open with an error. That works fine :)

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