Wiki articles in category Tutorials tagged with "DataColumn"

Showing 1-1 of 1 item.

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created 12 years ago by c@cba, updated 12 years ago by c@cba.

    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this:
    Now we might want to use $data in the declaration of the `...

19 1
Viewed: 80 150 times
Version: 1.1
Category: Tutorials