activeCheckBoxList & checkAll

I’d like to know, how the “checkAll” option of a ativeCheckBoxList can be checked by default?

Any suggestions?




echo CHtml::checkBoxList('Categories', array(), CHtml::listData(Category::model()->findAll(), 'IdCategory', 'Category'), array('template' => '<li>{input} {label}</li>', 'separator' => '', 'checkAll' => 'Check all'));



This doesn’t work, because I use the new CForm class to build my forms.