Ajax reload GridView Widget


I have a GridView widget with a list of items.

When i click on the add button on each line, i have an ajax call to a controller which performs an operation.

It works like a charm.

Now, after i click on the add button or after i click on the remove button on another part of the page, i want to reload the GridView, without reloading the entire page.

How can i do that with Ajax?

Put your grid into a Pjax with some ID and in your ajax js add a pjax reload

It works. If someone is interested the code is:

$.pjax.reload({container: '#idOfGridView'});

But in the debugger i see the pjax reload is not an Ajax request, is it normal?