R
R
Rustam Akimov2017-03-05 13:24:03
Yii
Rustam Akimov, 2017-03-05 13:24:03

How to hide remove and change buttons in GridView?

It's tedious to hide some buttons in the gridview, is there any built-in way?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-03-05
@Inogami

If you need to remove buttons, use the template property of the Action Column.
If they need to be hidden depending on any conditions, use the visibleButtons property

D
Dmitry, 2017-03-05
@slo_nik

Good afternoon.
Set ActionColumn to template
'template' => '{view}'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question