Issue
I have a status field, which should be highlighted in green or red, depending on where 0 or 1. I have the following code, but it does not work, all the cells in a single color paint. Tell me how to do such a thing?
array(
'name' => 'status',
'htmlOptions' => array('class' => $model->status == 0 ? "non_payed_status" : "payed_status"),
'filter' => false,
),
Solution
You have to override CDataColumn class, look at this, maybe will help:
Answered By - user2883814
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.