2012-08-24 40 views

回答

17

ext3中,將通過在列定義指定menuDisabled: true來完成。雖然不確定關於Ext4。

+1

謝謝你的哥們!它的工作原理:) – Kabeer

+0

我正在使用ExtJs 4.它不工作。有其他解決方案嗎? –

+0

我使用ExtJs 4.2.2並沒有問題。文檔[here](http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.column.Column-cfg-menuDisabled) – MarthyM

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

+0

謝謝,這是非常有用的。也適用於ExtJS 5。我有過濾和menuDisabled:true也刪除了過濾,但可隱藏:true工作正常。 –

相關問題