On 7/30/07, dperez <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm implementing the checkbox stuff in
> qx.ui.treevirtual.SimpleTreeDataCellRenderer, and have no problems, apart
> from this:
>
> I need to set the checked state in my checkbox.
> I do it in this event:
>   qx.ui.table.cellrenderer.Abstract.updateDataCellElement()
>
> I use the cellInfo.selected to know the checked state and the
> document.getElementById() to locate the checkbox emulation.

It's probably not a good idea to use the cellinfo.selected field, as
that is used for other purposes.  Use a different field.

> Problem:
>   I need to assign an unique ID

Every node has a unique id, as returned when you create the node.
That's probably the best id to use.  (Note that there are two sets of
ids: one which is permanently assigned to a node, and a different one
which is reassigned each time the tree is re-rendered.  The latter is
not what you want as you can get different values each time depending
on what other nodes are visible.)

Derrell

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to