Answer the question
In order to leave comments, you need to log in
How to freeze one column in gridview?
My problem is that I can't freeze one column, just like in exel, which would move anywhere in the sheet by scrolling, then this column always follows the user
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
[
'attribute' => 'id_zakaz',
'contentOptions' => ['style' => 'position:fixed;'],
],
....
],
]); ?>
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