Answer the question
In order to leave comments, you need to log in
Why doesn't filtering work in gridview?
I had a question, somehow filtering worked for me, but that's why it stopped. Filtering works by mask, from the MaskedInput widget. And in GridView I have this code
GridView::widget([
[
'attribute' => 'minut',
'format' => ['time', 'php:H:i'],
'filter' => MaskedInput::widget([
'name' => 'minut',
'mask' => '99:99',
]),
'headerOptions' => ['width' => '10']
],
[
'attribute' => 'phone',
'filter' => MaskedInput::widget([
'name' => 'phone',
'mask' => '7(999)999-99-99',
]),
],
)]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question