Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExpandRowColumn not working with ScrollPager #113

Open
Umashankarsaw opened this issue May 8, 2021 · 0 comments
Open

ExpandRowColumn not working with ScrollPager #113

Umashankarsaw opened this issue May 8, 2021 · 0 comments

Comments

@Umashankarsaw
Copy link

Umashankarsaw commented May 8, 2021

I have this below code and when I click to expand the row then its working for first page and when its scroll down and when load the next page onward then expand not working.
I have this code

[[<?php
echo GridView::widget([
"dataProvider" => $dataProvider,
"filterSelector" => "select[name='per-page']",
'floatHeader' => true,
'floatHeaderOptions' => [
'scrollingTop' => '50',
'floatContainerClass' => "float_table_header"
],
"layout" => getGridLayout(),
"tableOptions" => ["class" => "table table-striped task-management-table"],
"columns" => [
[
'class' => 'kartik\grid\ExpandRowColumn',
'width' => '50px',
'detailRowCssClass' => 'detailRowCssClass',
'detailUrl' => Url::to(['test/test1']),
'value' => function ($model, $key, $index, $column) {
return GridView::ROW_COLLAPSED;
},
'headerOptions' => ['class' => 'kartik-sheet-style'],
'expandOneOnly' => false
],
],

            'pager' => [
                'class' => ScrollPager::className(),
                'container' => '.grid-view tbody',
                'item' => 'tr',
                'paginationSelector' => '.grid-view .pagination',
                'triggerTemplate' => '<tr class="ias-trigger"><td colspan="100%" style="text-align: center"><a style="cursor: pointer">{text}</a></td></tr>',
                'enabledExtensions' => [
                    ScrollPager::EXTENSION_SPINNER,
                    //ScrollPager::EXTENSION_NONE_LEFT,
                    ScrollPager::EXTENSION_PAGING,
                ],
            ],
        ]);](url)
        ?>
    <?php //ActiveForm::end(); ?>

](url)
https://stackoverflow.com/questions/67444038/yii2-expandrowcolumn-not-working-with-scrollpager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant