W
W
walder2018-12-27 13:48:48
Yii
walder, 2018-12-27 13:48:48

How to change data output in GridView?

Hello.
The GridView now renders like this:

id  nummer cat_id count
1   001    1      12
2   001    2      40
3   001    3      2
4   002    1      11
5   002    2      16
6   002    3      1

Is it possible to render the GridView in this form, and how?
nummer cat_id1 cat_id2 cat_id3
001    count   count   count
002    count   count   count

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-12-27
@webinar

Form an appropriate dataProvider. GridView simply builds html based on the provider date and config passed to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question