bks07
(Boris Schlein)
1
I cannot see how to arrange multiple radio buttons by using Zii.
What I need is a list of 8 radio buttons (buttonset) which discribe a list of hours.
The only thing I found is this:
$this->widget('zii.widgets.jui.CJuiButton', array(
'name'=>'hours',
'caption'=>'1',
'value'=>'1',
'buttonType'=>'radio',
'options'=>array(
'onclick'=>'',
),
));
dniznick
(Dniznick)
2
Radio button list, or the active variant.
bks07
(Boris Schlein)
3
Yes, I am using radio button list atm. But I see no chance getting the Zii widget to work. 
skukje
(Kjell E Skutle)
4
A setup like this works for me, using CActiveForm:
$this->beginWidget('zii.widgets.jui.CJuiButton', array(
'buttonType'=>'buttonset',
'name'=>'hours',
));
echo $form->radioButtonList($model, 'hours', array('1'=>1,'2'=>2,...), array('separator'=>''));
$this->endWidget();
Setting the separator empty removes the br tag, placing the buttons nicely side by side.
Hope this is helpful.