Difference between #1 and #2 of
CGridView. Add custom class to table rows preserving original „odd“ and „even“

Revision #2 has been created by Maug Lee on Jun 3, 2013, 7:04:54 AM with the memo:

Some accents made
« previous (#1) next (#3) »

Changes

Title unchanged

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

CGridView, table, Widgets

Content changed

[...]
[html]
<td class="foo5bar">
~~~
(note the difference between „rowCssClassExpression“ and „cssClassExpression“)
From widget you can access such a variables:

 
- **
$row** : the row number (zero-based) - **$data** : the data model for the row - **$this** : the column object.
As you can see we use all of them.
### Expressions
This

```php
[...]
7 0
4 followers
Viewed: 53 911 times
Version: 1.1
Category: How-tos
Written by: Maug Lee
Last updated by: yugene
Created on: Jun 1, 2013
Last updated: 9 years ago
Update Article

Revisions

View all history