You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First, many thanks for sharing a very useful extension.
Please, Let me know how to implement pagination with ActiveDataProvider. I tried it after reading your test code, but things didn't seem to be as expected.
This is my code // search function in search model public function search($params) { $query = Model::find(); $dataProvider = new ActiveDataProvider([ 'query' => $query, 'pagination' => [ 'pageSize' => 5, ], ]); return $dataProvider; }
// view <?=GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'some_attr', '...' ] ]);=>
I want to show operator button (next button or preview button) but nothing show.
Please give me some instructions.
Thank you so much!
The text was updated successfully, but these errors were encountered:
Hi,
First, many thanks for sharing a very useful extension.
Please, Let me know how to implement pagination with ActiveDataProvider. I tried it after reading your test code, but things didn't seem to be as expected.
This is my code
// search function in search model
public function search($params) {
$query = Model::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
'pagination' => [ 'pageSize' => 5, ],
]);
return $dataProvider;
}
// view
<?=GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'some_attr',
'...'
]
]);=>
I want to show operator button (next button or preview button) but nothing show.
Please give me some instructions.
Thank you so much!
The text was updated successfully, but these errors were encountered: