Hi Derrell,
I am not sure if this mail was sent on the mailing list as I don't see
it yet and had got a delivery failure notice. So, sending it again.
Thanks for the help. Actually, we are still using v0.7.3 and so the
functionality and code are a little different. But, the v0.8 demo
mentioned by you does the same thing which we want to do (Editable
checkbox in a table). We will see the code and get back to you if we get
stuck up somewhere.
regards
Amit
On Thu, Sep 18, 2008 at 11:32 AM, Amit Rana <[EMAIL PROTECTED] <mailto:[EMAIL
PROTECTED]>> wrote:
Hi,
I want to insert a checkbox as a cell value in a table but I am not able
to do that.
I saw the Qooxdoo demobrowswer which has a similar functionality (in
Table2 example) but when i saw its code, I came to know that it is not a
checkbox but a hardcoded boolean value displayed as a checkbox. Also, it
cannot be edited to check or uncheck (it is a static field).
So, is it possible to do this ?
A normal cell editing session is initiated by double clicking on the
cell. In the demobrowser Table Cell_Editor demo, double clicking on the
checkbox cell begins editing of the cell, which in the case of the check
box cell editor, provides the ability to then click on the checkbox to
toggle its state. When the cell loses focus, the value of the checkbox
editor is saved back into the data model and the cell retains that value.
Clearly that's not the user experience that people expect if they see a
checkbox. An alternative is to listen for the "cellClick" event on the
table. That event's data is a qx.ui.table.pane.CellEvent which has both
a row and a column property. Your listener for that event could easily
swap the state of the checkbox and replace the data for that cell in
your data model. Since the table is a virtual widget (providing the
ability to handle hundreds of thousands or more rows of data) and the
cells aren't really widgets, we don't have the luxury and niceties of
widgets, so there's a bit more work involved in getting the same user
experience. It's not difficult, though; just a bit different.
Cheers,
Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel