i have checkbox list printed in one column, but i need it to print in columns and in every column should be for example 10 checkboxes.
My php code:
//$user_cats- array of categories.
echo CHtml::activecheckBoxList($categories,
'selected['.$parent->id.']',
CHtml::listData(
$user_cats,
'id',
'title',
''
));
Maybe is there a way to modify CHtml::listData that it could print checkboxes in columns?
I would do something like this:
And then in my CSS something like:
Adjust the CSS, primarily the width percentage, as needed.