M
M
My joy2018-05-07 19:40:41
Yii
My joy, 2018-05-07 19:40:41

CheckboxColumn - how to highlight a row by clicking on it and not on the checkbox?

Hi friends!
There is a checkbox column:

['class' => 'kartik\grid\CheckboxColumn', 'rowSelectedClass' => 'row-selected', 'headerOptions' => ['class' => 'min-w-25']]

tell me what to add so that you can select a row in the gridview not only by clicking on the checkbox, but also anywhere in the row? (user friendly)
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2018-05-07
@kawabanga

jquery -> line click event -> checkbox state changes.
But keep in mind that you will not be able to work properly with links inside such a line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question