I need your help with pagination of gridview. I have a gridvew in a view that is loaded with method
“return $this->renderAjax(…)”
and with jquery i show it in a div:
.done(function (data) {
$("#pgmProductList").html(data);
})
The Gridview is between Pjax::begin and Pjax::end.
The problem is that if the page is loaded first time all work correctly, but if I load the gridview with other records using ajax the pagination stop working.
The controller return the correct page of gridview but the data returned by ajax call is not replaced within gridview.
Have I to re-initialize the Gridview after the ajax call?