我使用的是yii GridView,如果一个值等于预定义的值,我想在下表中突出显示一个特定的行。
$this->widget('bootstrap.widgets.TbGridView', array(
'type'=>'striped bordered condensed',
'filter' => $model,
'dataProvider'=>$model->search(),
'columns'=>$columns,
'afterAjaxUpdate'=>'js:function(id, data) {$(".filters").hide();}',
));
我该怎么做?
非常感谢。
开始:
$this->widget('bootstrap.widgets.TbGridView', array(
'type'=>'striped bordered condensed',
'filter' => $model,
'dataProvider'=>$model->search(),
'columns'=>$columns,
'afterAjaxUpdate'=>'js:function(id, data) {$(".filters").hide();}',
'rowCssClassExpression'=>'(($data->myproperty=="predefined_value")?"selected ":"") . ($row%2?"even":"odd")',
));