Extjs中的GridPanel隐藏列会显示在menuDisabled中解决方法

  在Extjs中的GridPanel会有这样的情况,隐藏列会显示在menuDisabled中 如下图:

Extjs中的GridPanel隐藏列会显示在menuDisabled中解决方法

  但是这个一般没有什么用处,只是用于后台取值的作用。

  so

  加一个属性:hideable:false就可以搞定了

  

复制代码 代码如下:

  {

  header: "attendanceId",

  dataIndex: "attendanceId",

  hideable: false,

  hidden: true

  },