可以在页面尾部添加:
<?php
$this->registerJs(<<<JS
$('.filters input, .filters select').change(function() {
return false;
})
JS
);
或者
如果你没有修改搜索框的class的话,搜索框的class应该是 form-control。可以在页面尾部添加:
<?php
$this->registerJs(<<<JS
$('.filters .form-control').change(function() {
return false;
})
JS
);
1 回答4k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
2 回答2.2k 阅读✓ 已解决
1 回答1.4k 阅读✓ 已解决
2 回答2.2k 阅读
1 回答697 阅读✓ 已解决
1 回答578 阅读✓ 已解决
我也遇到了相同的问题。继承GridView类重写 renderFilters 方法