我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何防止Yii CGridView过滤器改变?

CGridView have active filter with "change" event. So every time i type something in one filter and leave this field it will change results on list.

I want to prevent this behavior and make CGridView filters only when user hits "enter" key.

So i could type values in 3 different filters and then hit enter to show results.

How can i do that?

Try

$(document).off('change.yiiGridView');

近期文章

  • Javascript生成的输入字段未发布
  • 选择存在的第一个变量的简单方法
  • PHP / HTML在提交后记住选定的值
  • 将内容设置为多个TinyMCE textarea?
  • 我与mysql的连接有效,但没有任何查询[重复]
  • PHP错误:解析错误:语法错误,意外' - >'[重复]
  • 使用SimpleXml从xml文件中提取数据
  • 处理特殊字符PHP Webdriver
  • 如何将文件内容作为textarea值?
  • 将函数参数列表转换为数组
  • ACF:为什么我不能一次显示所有图像?
  • foreach()的问题提供的参数无效
  • 标头未使用Referrer-Policy进行设置
  • 从php调用jrxml文件以生成pdf
  • 枢轴表没有附加laravel关系
  • MVC模式和文件夹结构的最佳实践
  • 如何在doxygen文档中包含文件夹?
  • 为什么我的PDO语句 - >执行返回false?
  • 这些额外的HTTP标头来自哪里?
  • 如何从sql表PHP加载选定的单元格

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华