Pjax GridView: refresh page after delete

Comparing #2 with #3

Revision #3 was created by hehbhehb hehbhehb on May 11, 2018, 3:59:10 AM.

a little change

Content

Normally, after clicking the delete button in gridview, the record will be deleted and the page will refresh, but the page number in query string is lost. This is not always the case we expect. How to refresh current page with pjax after deleting the record? It seems there is no very simple solutions, This is my way, it works well, although it is not clean.

1. Controller file


```
[...]