Derrell Lipman wrote:
This is similar to the purpose for which I created the modal window cell editor concept. If your cell editor factory returns an object that is an instance of qx.ui.window.Window, it will be automagically made modal and the function that you've registered with table.setModalCellEditorPreOpenFunction() will be called with the cell editor object and cellInfo as parameters. Upon return from that function, (or immediately if no function has been registered), the window will then be opened. When the window is closed, typically by th user pressing a Save button of some sort, the value for the particular cell which was clicked will be retrieved in the normal fashion, by calling the cell editor factory's getCellEditorValue() method with the cell editor as its parameter. You can look at table/pane/Scroller.js, methods startEditing(), stopEditing(), flushEditor(), and cancelEditing() for additional hints. I suspect that upon Save, you'll want to add the row to the data model, rather than expecting the closing of the modal window to save everything, since you want to add multiple rows.

Alternatively, you could simply have an Add button that adds a new row to the model, using a modal window in a similar fashion to what the modal cell editor would do.
Thanks Derrell. I'm going with a hybrid technique of sorts. Repeating my response to Daniel:

Yup, I've decided to use a pop-up modal window with around 10-20 rows, each with the right no.of text fields corresponding to the columns and a save button. Once saved, I'll send it to the server and based on the response will add it to the table model :)
This will give the user the chance to enter multiple rows(capped at some sensible max within 10-25) and then pressing "save" can save the data to the server :)

Thanks once again for the pointers :)

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