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.

Problem:
  I need to assign an unique ID if I wish to use document.getElementById(). 
I've thought using the nodeId of the current node.
  But after expanding/collapsing nodes, I've seen that the nodeId isn't
invariant.
  Other alternative is to search my pseudo-checkbox in the DOM, withouth
using an ID, but is more tricky.

Any ideas?

I forgot about unique IDs after using qooxdoo, but for this lower level
stuff seems to be necessary again.  :-(


Derrell Lipman wrote:
> 
> On 7/26/07, dperez <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I would like to have a treevirtual with checkboxes to the left of the
>> item
>> text, like in this screenshot.
>> http://www.nabble.com/file/p11810119/screenshot.gif
>>
>> What's the best way to do it?
>> I've thought about deriving from SimpleTreeDataCellRenderer.
> 
> That's the way to do it.  You'll also have to trap clicks on the
> checkbox (remember, it's not a widget or html checkbox, it's an icon)
> and switch the icon to toggle the checkbox state.  Look at
> _handleSelectEvent() in treevirtual/SelectionManager.js to see how to
> go about that.
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TreeVirtual-with-checkboxes-tf4151531.html#a11860929
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


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