CGridView rowCssClassExpression

Any idea how I can use CGridView rowCssClassExpression? I realise it’s a PHP expression, however when I try something like this, I get the TR class set to “row-closed” no matter what the value of “open_ticket”.

$this->widget('zii.widgets.grid.CGridView', array(



	'emptyText'=>'This ticket folder is empty. ',












			'value'=>'CHtml::link($data->subject->value, array("ticket/read", "id"=>$data->id)',








anyone? - bump

You cannot use $data variable. You need to use $this->dataProvider->data[$row] to refer to the model associated with the row.

I just added support so that you can use $data directly in the expression.

thanks qiang - you star!

I probed this solution and not rules. Only rules: