Difference between #16 and #17 of
Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Revision #17 has been created by Gerhard Liebenberg on Apr 30, 2016, 4:40:39 PM with the memo:

Added scenario 3
« previous (#16)

Changes

Title unchanged

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

complex custom CGridView column sort filter

Content changed

[...]
'header'=> CHtml::encode($model->getAttributeLabel('varColour')),
'filter' => CHtml::activeTextField($model, 'varColour'),
),
```

SCENARIO 3
 
----------
 
 
### Display all records from two different tables in the same gridview
 
In scenario 1 and 2, I used records from a single table and then spiced them up - perhaps with data from another table.
 
 
 
But in this scenario I want to display all records from both tables in a gridview.
 
Check out this wiki and comment:
 
[Wiki](http://www.yiiframework.com/wiki/517/multiple-cactivedataproviders-in-one-cgridview/#c19844 "Wiki")
6 0
6 followers
Viewed: 65 420 times
Version: 1.1
Category: How-tos
Written by: Gerhard Liebenberg
Last updated by: Gerhard Liebenberg
Created on: Nov 18, 2013
Last updated: 8 years ago
Update Article

Revisions

View all history