title: Yii 2 : how to bulk delete data in kartik grid view?
body: <p>Kartik grid view in yii2 provides an option to display checkboxes in grid view. How do I delete bulk data by checking the checkboxes? Any help would be greatful. Here is my code:</p>
  
  <pre><code>&lt;?php use kartik\grid\GridView;?&gt;
  &lt;?= GridView::widget([
      'dataProvider' =&gt; $dataProvider,
      'filterModel' =&gt; $searchModel,
      'pjax'=&gt;true,
      'pjaxSettings'=&gt;[
          'neverTimeout'=&gt;true,
      ],
      'columns' =&gt; [
          ['class' =&gt; '\kartik\grid\CheckboxColumn'],
          ['class' =&gt; 'yii\grid\SerialColumn'],
  
          'hotel_id',
          'name',
          'address',
          'phone_no',
          'contact_person',
          ['class' =&gt; 'yii\grid\ActionColumn'],
      ],
  ]); ?&gt;
  </code></pre>