Wondering how.. or is it of use to insert in CGridView.php line 133
Code: Select all
$classForm = self::params('options.classForm', array());
Code: Select all
$output .= CHtml::openForm($actionPath, 'get', array('id'=>'frmFilter'.$modelName)).self::NL;
to
Code: Select all
$output .= CHtml::openForm($actionPath, 'get', array('class'=>(!empty($classForm['class']) ? $classForm['class'] : ''),'id'=>'frmFilter'.$modelName)).self::NL;
that way we can pass a class to the Form tag <Form class="table">
Code: Select all
echo CWidget::create('CGridView', array(
'model' => 'ReportsProjects',
'actionPath' => 'reportsProjects/manage',
'condition' => '',
'defaultOrder' => array('project_name'=>'ASC'),
'passParameters' => true,
'pagination' => array('enable'=>true, 'pageSize'=>20),
'sorting' => true,
'options' => array(
'classForm' => array('class'=>'table'),
'filterDiv' => array('class'=>''),
'filterType' => 'default',
'gridWrapper' => array('tag'=>'', 'class'=>''), //head th class
'gridTable' => array('class'=>'table'),
),
'filters' => array(.....
regards henrik