Hi all, I put my gridview into a form because i need to let the user select some rows and change their status.
In my controller i change
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
with
$dataProvider = $searchModel->search(Yii::$app->request->post());
It works fine and all the filter made by the user pass in post method.
But when i go to the next page i lose post parameters of the filter.
The pagination links use get method adding “page” and “per-page” parameter.
At the moment i solve by myself in this way. I don’t know if there’s a better solution.
In my controller i save in the session the filter parameters and if ther’isn’t (when change page or sort the grid) i load from session: