A
A
akula222015-01-02 23:00:53
Yii
akula22, 2015-01-02 23:00:53

CheckboxColumn and checkboxOptions value change?

In Gridview CheckboxColumn I do
'checkboxOptions' => function($data, $key, $index, $widget) {
return ["value" => $data->sender_id];
},
that is, I put the user ID in the value
and how can I get it now in javascript
$('#pm_tbl').yiiGridView('getSelectedRows')) gives out the column ID, although the user ID is in the value

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question