Hi skar,

a popup is probably the right way to achieve this. You can listen to the 
table's "cellDblclick" event, which has a "row" property. If that's 0, 
you'd open the popup. I'm not sure how to place the popup right over the 
first row, I guess you could determine the table's top position using 
table.getBounds().top and add the height of the header cell 
(table.getHeaderCellHeight()). But apparently that doesn't include 
padding so it's still a few pixels too high.

Does this answer your question? If not, I'll ask one of the table gurus 
to take over.


Regards,
Daniel

skar schrieb:
> Hi,
> 
> I need to have my users input some new rows(some 3-4 columns) for my 
> table and then save them to server. What's the best way to get this done?
> 
> I tried having an empty row as the 0th row of the table, focusing on the 
> first cell and editing it, but if the user stops entering and presses 
> "Esc", I won't know if he meant to have the current editor data to be 
> saved or he meant to cancel the new row. Is there anyway I can show a 
> popup over the first row with the corresponding text field with a cancel 
> button?
> 
> cheers,
> skar.
> 

------------------------------------------------------------------------------
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