yii2 function delete and filter in gridview

Help me plese

filter in cgridview stay on function delete

What is your problem?

In your code do the following:

<?php $this->widget(‘zii.widgets.grid.CGridView’, array(

'id'=&gt;'individual-grid',


'dataProvider'=&gt;&#036;model-&gt;search(),


'filter'=&gt;false, //removes filters from grid view


     .....


     .....


     .....


     rest of code

yii2 delete data in cridview

delete finish go to home

want delete finish and data in filter until

no go to home

public function actionDelete(&#036;id)


{


    &#036;this-&gt;findModel(&#036;id)-&gt;delete();





    return &#036;this-&gt;redirect(['index']);


}