I have a search box and use CGridView to display results. When clicking submit button, I pass params to the controller using ajax then update the CGridView when data is returned.
The problem is: when I click the header of each column to sort, the old seach params are not retained so the CGridView show all records.
I’m new with Yii. Please give me an advice to solve this problem.