Treeview checkbox ?

Is there anyway to combine the treeview with checkboxlist ? :) I am now making a small widget that can do it… but I wonder if there is a better way

i think you can edit text property of element like this

.

.

.

array(

‘text’ => CHtml::checkBox(‘name’, true|false) …

)

.

.

.