Oh, sorry, that was just typing mistake there. My problem is still here, and I need fix this because when I click too much page has reflashing? and it’s not good
if you have a search form and grid that is wrapped in pjax you need to set the ‘action’ url manually on the form (i’d use Url::to([])) on the search form or it will keep appending the GET params instead of updating to the new one(s).
to send the params manually in the url or in the controller you need to change your searchModel portion that loads the params like
if (isset($_GET['ProductSearch']) && !($this->load($params) && $this->validate())) {
return $dataProvider;
}
You can now send the values in the url or controller like
$searchModel = new ProductSearch(['category_id' => $id]);
make sure you have rules and filters set in the searchModel as well. [size="2"]Hopefully that helps.[/size]