Hello,
I have search form, which has following search criteria,
search field [Model Name]
===================
Emp Name [Employee]
Dept Name [Department]
Type [Leave]
From Date[Leave]
To Date [Leave]
Status [Leave]
all these criteria are under the form tag. after that i m using CGridView to show records.
I can see the records, according to my search params.
but the issue is, when i click on the Column header for the sorting, it’s not
considering the selected params from search critera.
I have added code for serialize as below,
Yii::app()->clientScript->registerScript('test', "
$('form').submit(function() {
$.fn.yiiGridView.update('search-grid', {
data:$(this).serialize()
});
return false;
});
");
but still it’s not working, can anyone help me?