Reputation: 1529
I am trying to validate null values in a column and i have to update another column based on this validation. My request is,
Say i have Column 'Type' , if column 'Type' has some value in DB means i have to display tick mark in "Valid" column in CGridView. (Valid column is psuedo column)
Column 'Type' has null values means i have to display untick mark in "valid" column.
Please provide any idea over this.
Upvotes: 0
Views: 384
Reputation: 4629
Add New Column in Gridview with
array('name' => 'Status',
'value' => '!empty($data->type) ? "<img />" : "<img tag/>"',
'type' => 'raw'),
you can put your image tag with src in this.
Upvotes: 1