user1900685
user1900685

Reputation: 193

Gridview pager link with pjax

I'm using pjax in such way:

<?php Pjax::begin([
    'id' => 'clients-list',
    'enablePushState' => false,
    'enableReplaceState' => false,
]); ?>

And it works fine for url in browser, but replaces links for pagination in my GridView (link to action in my controller which processing ajax requests). How to avoid it?

Upvotes: 2

Views: 906

Answers (1)

arogachev
arogachev

Reputation: 33548

By default, any links inside Pjax container will trigger pjax request.

To avoid it, add 'data-pjax' => 0 attribute to them, and in this case they will be ignored.

Upvotes: 2

Related Questions