dimanche 17 janvier 2016

Show Checkbox was checked in CGridView Yii 1.1

I have a CGridView with Checkbox column like this:

array(
      'name' => 'updated',
      'id' => 'selectedIds',
      'value' => '$data->id',
      'class' => 'CCheckBoxColumn',
      'checkBoxHtmlOptions' => [
           'class' => 'checkbox-ajax'
      ]
),

and I have a field updated DB with 0 if not update and 1 if updated.

Now I want to check the row in CGridView if field updated = 1, this row will be bold or highlight this.

Any solutions for this case?




Aucun commentaire:

Enregistrer un commentaire