Changes
Title
unchanged
CSqlDataProvider in CGridView
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
CGridView, CSqlDataProvider, complex custom CGridView column sort filter
Content
changed
[...]
```php
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'a-grid-id',
'dataProvider' => $mainodel,
'ajaxUpdate' => true, //false if you want to reload aentire page (useful if sorting has an effect to other widgets)
'filter' => null, //if not exist search filters
'columns' => array(
array([...]