I’m trying to build a dynamic reporting section for my application ( using 1.1.1 )
I have the main index action for this controller creating a dual column display, in which the right column renders a partial _form. The _form submits via ajax to the left column div and displays the report details in a CGridView.
The initial ajax based partial render is called as such:
public function actionView()
{
$reportOpt =new ReportsForm;
... // basic init. for reportOpt
$dataProvider =new CActiveDataProvider('reportSummary', array(
'pagination'=>array(
'pageSize'=>10,
)
));
$this->renderPartial(
"_".ReportsForm::$_reportTypes[$reportOpt->reportType]['action'],
array('formOptions'=>$reportOpt, 'dataProvider'=>$dataProvider),
false,
true);
}
In the partial view:
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
'ajaxUpdate'=>'ajaxContent',
)
);
To this point, everything works great.
However, whenever I try to use the column sorting and pagination, it displays the loading icon, then the div is updated with no content.
I feel like I must be missing something very basic and wonder if anyone can point me in the right direction please.