yii2-widget-datatables icon indicating copy to clipboard operation
yii2-widget-datatables copied to clipboard

CheckboxColumn

Open lugaru90 opened this issue 8 years ago • 4 comments

Does not work with ['class' => 'yii\grid\CheckboxColumn']. yiigridview is not defined

lugaru90 avatar Apr 07 '16 12:04 lugaru90

'columns' => [ [ 'class' => 'yii\grid\CheckboxColumn', 'checkboxOptions' => function ($model) { return [ 'value' => $model->id, ]; }, ],

Getting an error when trying to add a CheckboxColumn:

Uncaught TypeError: jQuery(...).yiiGridView is not a function

knowbe4-harper avatar Nov 13 '17 15:11 knowbe4-harper

i'm fix, modify DataTablesBootstrapAsset.php and add yii.gridview.js (from vendor > yiisoft > yii2 > assets) move to datatables-bootstrap3 > BS3 > assets > js 3

atmanegara avatar Aug 08 '18 22:08 atmanegara

Has no one found a cleaner solution ?

paskuale75 avatar Apr 10 '21 08:04 paskuale75

[solved] In view : use yii\grid\GridViewAsset;

and call this : GridViewAsset::register($this);

paskuale75 avatar Apr 11 '21 15:04 paskuale75