Wiki articles tagged with "DataColumn"

Showing 1-4 of 4 items.

GridView show sum of columns in footer.

Created 2 years ago by shiv.

GridView show sum of columns in footer `PHP use yii\grid\DataColumn;

2 0
1 follower
Viewed: 97 427 times
Version: 2.0
Category: Tips

Filter & Sort by Summary Data in GridView Yii 2.0

Created 11 years ago by Kartik V, updated 11 years ago by 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: 74 195 times
Version: 2.0
Category: Tutorials

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

Created 11 years ago by Kartik V, updated 6 years ago by 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: 274 317 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, updated 13 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:
'value'=>'$data->author->username',.
    Now we might want to use $data in the declaration of the `...

19 1
14 followers
Viewed: 81 674 times
Version: 1.1
Category: Tutorials