title: Checked Checkbox in Yii2 Gridview by pjax
body: <p>I am struggling with gridview checkbox in gridview yii2. For checkbox,
  I can use </p>
  
  <p><code>'class' =&gt; 'kartik\grid\CheckboxColumn',</code>  which is extends from </p>
  
  <pre><code>'class' =&gt; 'yii\grid\CheckboxColumn',
  </code></pre>
  
  <p>So, the complete code is in gridview :</p>
  
  <pre><code>  GridView::widget([
        'id' =&gt; 'crud-datatable',
        'dataProvider' =&gt; $dataProvider,
        'filterModel' =&gt; $searchModel,
        'pjax' =&gt; true,
        'columns' =&gt; require(__DIR__ . '/_columns.php'),
  </code></pre>
  
  <p>Which is column.php is :</p>
  
  <pre><code>return [
  [
      'class' =&gt; 'yii\grid\CheckboxColumn',
      'checkboxOptions' =&gt; function($model, $key, $index, $column) {
  
      }
  ], ... /*bunch column here */
  </code></pre>
  
  <p>My question is, how can I checked this checkbox by pjax. Because I have a data that came from pjax like this :</p>
  
  <pre><code>$js = &lt;&lt;&lt;JS
  $(document).on('pjax:complete', function(data){
          var datas = $('#print-sticker-keren').attr('data-print');
          /* result e.g : 2297,2275,2321,2317,2315
                I was wondering like function php's in_array.
          */ 
      });
  JS;
  
  $this-&gt;registerJs($js);
  </code></pre>