M
M
Mark2019-08-04 18:08:01
Yii
Mark, 2019-08-04 18:08:01

How to duplicate filter field in Yii2 GridView footer?

You need to duplicate the GridView filter field in the footer. By default, it is located in the header.
Image example:
8qjVVR2.jpg
How can this be implemented?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2019-08-04
@MarkLb

1. Inherit the widget and rewrite the filter display logic.
2. Use the generated Yii search form file "_search.php". Remove the search model from Grid and connect the search form above and below.
I'd rather go with the second option. Because it's easier and more flexible.

B
Boris Korobkov, 2017-12-07
@vetsmen

UNION

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question