Answer the question
In order to leave comments, you need to log in
How to search across multiple gridviews?
Good afternoon! I can’t think of and find an answer on how to do a single search on 4 gridview tables if there is only one model. Do I need to access the model or do I look for it in some other way?
And the search needs to be done in such a way that it does not look for the column of the table, but if it occurs in the table, it displays it.
Answer the question
In order to leave comments, you need to log in
single search across 4 gridview tables
public $q_text;
$query->orFilterWhere(['like', 'column_1', $this->q_text])
->orFilterWhere(['like', 'column_2', $this->q_text])
->orFilterWhere(['like', 'column_3', $this->q_text]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question