如何从Ext JS Grid的列标题中删除选择器

时间:2012-08-24 09:53:14

标签: extjs grid styles

我想从网格的列标题中删除选择器(具有排序和列选择选项)。我正在使用Ext JS 4.1.1

enter image description here

2 个答案:

答案 0 :(得分:18)

在Ext3中,可以通过在列定义中指定menuDisabled: true来完成。但不确定Ext4。

答案 1 :(得分:8)

多年来这种情况一直在变化。

在4.2.2(2014年5月的当前版本)中,可以为每列设置一个属性:

menuDisabled:true

sortable:false // menu shows but no sort options

hideable:false // menu shows but column name not shown in columns menu

menuDisabled:true // no menu

这些是针对各个列的。对于网格标题,请参阅http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.header.Container-cfg-enableColumnHide

相关问题