Hi guys,
im new to Yii2, I have installed Yii2 basic structure using composer and trying to create user section.
I have created user section with gii CRUD Generator, all things working fine except Ajax functionality, for Ajax functionality, i have added Pjax widget with gridview as following :
<?php Pjax::begin(); ?>
<?= GridView::widget([
'id' => 'user-grid',
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id',
'role_id',
'username',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
<?php Pjax::end(); ?>
BUT still page reloaded with pagination links and filterModel search.
I don’t know that what is missing here, i tried to search on forum but do not found any solution.
Can any one help me to overcome this issue PLS.