php - how add custom column to grid view without affecting the database? -


i need add new column in grid view not included in database. , don't need send data insert column database. how need in yii2 php framework explain step step.

there built-in column purpose. it's called checkboxcolumn , can added columns that:

'columns' => [     // ...     [         'class' => 'yii\grid\checkboxcolumn',         // may configure additional properties here     ], ], 

to selected rows use following javascript code:

var keys = $('#grid').yiigridview('getselectedrows'); // keys array consisting of keys associated selected rows 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -