kartik-v / yii2-dynagrid

Turbo charge the Yii 2 GridView with personalized columns, page size, and themes.
http://demos.krajee.com/dynagrid
Other
74 stars 66 forks source link

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

Closed adamwinn closed 5 years ago

adamwinn commented 5 years ago

Prerequisites

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">
stale[bot] commented 5 years ago

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.