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

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -