Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用ExtJSGridFilters_Extjs - Fatal编程技术网

使用ExtJSGridFilters

使用ExtJSGridFilters,extjs,Extjs,我正在尝试在我的网格中实现网格过滤器: 奇怪的是,它在我的Sencha小提琴中工作,但在我的实际项目代码中,它产生了一个错误。当我单击header trigger菜单时会发生错误,firebug报告typeError:g.showMenu()不是一个函数 showMenu是gridfilters的属性,但根据API文档,它不是函数。。为什么它会尝试调用.showMenu() 我使用的Ext版本是5.1.1请分享你的小提琴,这样我就可以很容易地测试我的想法,为什么会出现问题。我的第一个想法是,gr

我正在尝试在我的网格中实现网格过滤器:

奇怪的是,它在我的Sencha小提琴中工作,但在我的实际项目代码中,它产生了一个错误。当我单击header trigger菜单时会发生错误,firebug报告
typeError:g.showMenu()
不是一个函数

showMenu
gridfilters
的属性,但根据API文档,它不是函数。。为什么它会尝试调用
.showMenu()


我使用的Ext版本是5.1.1

请分享你的小提琴,这样我就可以很容易地测试我的想法,为什么会出现问题。我的第一个想法是,gridfilters可以在内部调用该按钮,如果该按钮不存在(例如,因为您已在列上设置或使用嵌套列),则可能会引发错误。@Alexander fiddle是:什么类型的按钮,只是网格上的任何按钮?您是否在命令中添加了“Ext.grid.filters.filters”?你也可以发布你的代码你做了什么?我确实使用了requires:['Ext.grid.filters.filters'],它非常简单,一个带有插件的网格:'gridfilters',但是当我单击触发器标题时,它说showMenu()不是一个函数。我发现的一件事是,如果我将showMenu设置为false。。它至少可以让我打开标题触发菜单。。插件:[Ext.create('Ext.grid.filters.filters',{pluginId:'normalFilter',showMenu:false,}]
 plugins: 'gridfilters',