X
X
xbcaax2015-10-17 15:27:21
Yii
xbcaax, 2015-10-17 15:27:21

How to properly update grid using pjax Yii2?

There is a standard grid.

<?php \yii\widgets\Pjax::begin(['id' => 'course_grid']); ?>
    <?= GridView::widget([
    ...
    ]); ?>
 <?php \yii\widgets\Pjax::end(); ?>

The grid should change depending on the selected select option. The same filter, just not inside the grid.
On yii, the first one would do it through an ajax request and replace the grid through renderPartial.
$.pjax.reload({container:'#course_grid'}); - updates my grid, but the point of this update is if I can't pass any data.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mishko_kun, 2015-10-20
@Mishko_kun

So? demos.krajee.com/grid-demo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question