So first off love this extension, does what I was looking for but it breaks filtering and search. Could someone help me get that working again?
So the filter shows up but it doesn’t work. Any help would be great.
in admin page
<?php
$dialog = $this->widget('ext.ecolumns.EColumnsDialog', array(
'options'=>array(
'title' => 'Layout settings',
'autoOpen' => false,
'show' => 'fade',
'hide' => 'fade',
),
'htmlOptions' => array('style' => 'display: none'), //disable flush of dialog content
'ecolumns' => array(
'gridId' => 'user-grid', //id of related grid
'storage' => 'db', //where to store settings: 'db', 'session', 'cookie'
'fixedLeft' => array('CCheckBoxColumn'), //fix checkbox to the left side
'model' => $model->search(), //model is used to get attribute labels
'columns' => array(
'username',
'password',
array(
'class' => 'editable.EditableColumn',
'name' => 'status',
'headerHtmlOptions' => array('style' => 'width: 100px'),
'editable' => array(
'type' => 'select',
'url' => $this->createUrl('updateEditable',array('model'=>'User', 'field'=>'status')),
'source' => array('1'=>'Active','0'=>'Not Active'),
),
),
array(
'class'=>'CButtonColumn',
'header'=>'Toggle Details',
'template'=>'{toggle}{view}{delete}{update}',
'buttons'=>array(
'toggle'=>array(
'label'=>'Details',
'imageUrl'=>Yii::app()->request->baseUrl.'/images/expand.png',
'url'=>'Yii::app()->createUrl("user/getExtra", array("id"=>$data->id))',
'options'=>array('class'=>'toggle',
),
),
),
),
),
)
));
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'user-grid',
'dataProvider' => $model->search(),
'filter'=>$model,
'columns' => $dialog->columns(),
'template' => $dialog->link()."{summary}\n{items}\n{pager}",
));
?>
Ecolumns Yii Extension Page