Wiki articles in category Tutorials tagged with "DataColumn"

Showing 1-3 of 3 items.

Filter & Sort by Summary Data in GridView Yii 2.0

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V Kartik V.

This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

5 2
48 followers
Viewed: 76 244 times
Version: 2.0
Category: Tutorials

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 12 years ago by Kartik V Kartik V, updated 6 years ago by softark softark.

This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

14 3
64 followers
Viewed: 285 088 times
Version: 2.0
Category: Tutorials

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

Created 13 years ago by c@cba c@cba, updated 13 years ago by c@cba 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:
'value'=>'$data->author->username',.
    Now we might want to use $data in the declaration of the `...

19 1
14 followers
Viewed: 83 283 times
Version: 1.1
Category: Tutorials