【问题标题】:How to implement Case Insensitive Filter Search in ExtJs 4.2.3如何在 ExtJs 4.2.3 中实现不区分大小写的过滤器搜索
【发布时间】:2015-04-13 13:52:04
【问题描述】:

我已经对这个主题进行了充分的研究,但我发现很难找到解决方案,请帮助解决这个问题。

Ext.define('Ext.ux.grid.FiltersFeature', {
extend: 'Ext.grid.feature.Feature',
alias: 'feature.filters',
uses: [
    'Ext.ux.grid.menu.ListMenu',
    'Ext.ux.grid.menu.RangeMenu',
    'Ext.ux.grid.filter.BooleanFilter',
    'Ext.ux.grid.filter.DateFilter',
    'Ext.ux.grid.filter.DateTimeFilter',
    'Ext.ux.grid.filter.ListFilter',
    'Ext.ux.grid.filter.NumericFilter',
    'Ext.ux.grid.filter.StringFilter',
],

我正在使用 sencha 网站的上述插件。下面是我的网格的样子。

从上面的网格中,我为所有列添加了过滤器选项, 当我搜索“vl - 银行”(在上面的例子中)时,我无法匹配任何东西,它说没有找到记录。

但它匹配文本“VL - Bank”(在上面的示例中)。

我只需要找到一种简单的方法来匹配过滤器不区分大小写的字符串

通过谷歌浏览时。我可以看到有些方法仅用于其他带有关键字“CaseSensitive:false”的插件

但是“Ext.ux.grid.FiltersFeature”没有这个选项。

我在 Extjs 方面有点弱,请帮我解决这个问题。

【问题讨论】:

    标签: extjs extjs4


    【解决方案1】:

    也许问题出在数据库中。确保您正在搜索的数据库、表或字段“不区分大小写”。修改DB、表或字段结构,设置utf8_general_ci(_ci代表不区分大小写)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-04
      • 1970-01-01
      • 2018-11-16
      • 1970-01-01
      • 2013-10-24
      • 1970-01-01
      相关资源
      最近更新 更多