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

pjaxSettings['options']['id'] is not set even tho it's configured #219

Closed
5 of 6 tasks
adamwinn opened this issue Apr 14, 2019 · 1 comment
Closed
5 of 6 tasks

pjaxSettings['options']['id'] is not set even tho it's configured #219

adamwinn opened this issue Apr 14, 2019 · 1 comment
Labels

Comments

@adamwinn
Copy link

adamwinn commented Apr 14, 2019

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest master branch of yii2-dynagrid.
  • This is not an usage question. I confirm having gone through and read the documentation and demos.
  • This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
  • I have attempted to find the simplest possible steps to reproduce the issue.
  • I have included a failing test as a pull request (Optional).

I set the my dynagrid as below and wanted to name my pjax container differently so I could match it to my unique pjaxContainerId. Instead pjaxSettings['options']['id'] is not set and is set to the default of $grid->options['id'] . '-pjax';

echo DynaGrid::widget([
    'columns' => $columns,
    'gridOptions'=>[
        'pjaxSettings' => ['options' => ['id' => 'kv-pjax-container']],
        'pjax'=>true,
        'dataProvider'=>$dataProvider,
        'filterModel'=>$searchModel,
    ],
    'options'=>['id'=>'store-review-grid'] // a unique identifier is important
]);

HTML source has:

<div id="store-review-grid"><div id="store-review-grid-pjax" data-pjax-container="" data-pjax-push-state data-pjax-timeout="1000">
  • yii2-dynagrid version: dev-master
@stale
Copy link

stale bot commented Jun 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 13, 2019
@stale stale bot closed this as completed Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant