Answer the question
In order to leave comments, you need to log in
Why does ajax scroller in gridview duplicate already displayed data?
Good evening fellow friends!
There is a PageScroller, it is connected to the GridView as standard:
'pager' => [
'class' => ScrollPager::className(),
'container' => '.grid-view tbody',
'item' => 'tr',
'paginationSelector' => '.footer',
'enabledExtensions' => [
ScrollPager::EXTENSION_SPINNER,
ScrollPager::EXTENSION_PAGING,
],
],
$query = Orders::findBySql($q, $bind);
$dataProvider = new ActiveDataProvider([
'query' => $query,
'sort' => [
'attributes' => [
'orders_count',
'sum_avg',
'bid_avg',
],
],
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question