PDA

View Full Version : One tree node with 2 checkboxes



iBrother
5 Sep 2010, 5:53 PM
Hello all,

Is there a way to add more checkboxes to the treenode? Currently, I have a check-tree that has only one checkbox on each node. I want to have 2 checkboxes on each node that have different function.

Any body help me?

Condor
6 Sep 2010, 1:33 AM
You will have to write a TreeNodeUI extension that renders two checkboxes instead of one (and handles clicks on them differently).

iBrother
6 Sep 2010, 2:49 AM
Thank you very much Condor.

I got a bit brigther. Just wondering if you could provide a sample code of how to render the two checkboxes?

Thank in advance,

mcadirci
6 Sep 2010, 2:52 AM
May be putting a checkbox can help smt like:
text='<input type="checkbox" name="checkBox" />Text of the node'

iBrother
6 Sep 2010, 2:55 AM
Thank you for a ligntening respone. I will try it.

Thanks again.