How to update GridView in javascript?

Good afternoon everyone, there is a question, there is a GridView and there is an ajax request this ajax request returns a dataProvider for GridView. The question arose whether there is a js function to refresh only the GridView on the new dataProvider comes from the response? Please about pjax word using pjax I have everything working. I'm interested in the answer to such a case. Maybe there's a function to create an entirely new GridView?

$("whither the click").click(function (event) {
 url: this.href
 type: "POST",
 data: $('.form-search').serialize(),
 success: function (response) {
 //what should be here? in response is the dataProvider
March 12th 20 at 08:40
1 answer
March 12th 20 at 08:42
Yii gridView is generated with php. So what to do with js will not work. There are js libraries to build tables, but it is quite another.

Find more questions by tags YiiJavaScript