Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question