H
H
hollanditkzn2017-06-21 11:34:35
css
hollanditkzn, 2017-06-21 11:34:35

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

1 answer(s)
A
Anton, 2017-06-21
@hollanditkzn

Try this:
https://stackoverflow.com/questions/1312236/how-do...
In general, learn to google in English. Lots of options for solving your problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question