Hi,
In have an ajax-select to select one of two views (renderpartial) with one gridview (yiiwheels.widgets.grid.WhGridView) The renderpartials is ok (http://www.yiiframework.com/wiki/49/update-content-in-ajax-with-renderpartial/)
Two gridviews is related to the same model but show differents columns
sugerencias
incidencias
But my problem is with filters:
-
Select sugerencias-gridview
-
Select incidencias-gridview
-
Filter incidencias-gridview
I get the error: Maximum call stack size exceeded
suggestion.php
<?php
if (Yii::app()->request->isAjaxRequest){
Yii::app()->clientScript->scriptMap = array(
'jquery.js' => false,
'jquery.min.js' => false,
'select2.min.js' => false,
'select2.min.css' => false,
'font-awesome.css' => false,
);
}
$this->widget('yiiwheels.widgets.grid.WhGridView', array(
'id'=>'improvement-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'pager' => array(
'maxButtonCount' => 10,
),
'columns'=>array(
...
),
//WhGridView properties
'fixedHeader' => false,
'type' => 'striped bordered',
'responsiveTable' => true,
));
?>
incidence.php
<?php
if (Yii::app()->request->isAjaxRequest){
Yii::app()->clientScript->scriptMap = array(
'jquery.js' => false,
'jquery.min.js' => false,
'select2.min.js' => false,
'select2.min.css' => false,
'font-awesome.css' => false,
);
}
$this->widget('yiiwheels.widgets.grid.WhGridView', array(
'id'=>'improvement-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'pager' => array(
'maxButtonCount' => 10,
),
'columns'=>array(
...
),
//WhGridView properties
'fixedHeader' => false,
'type' => 'striped bordered',
'responsiveTable' => true,
));
?>
How can I fix it?
Regards,