Extjs4 grid 表头header点击事件获取
有个需求 找了半天 终于找到了。
原来一直纠结在是不是要找column 的API
直接找到grid 后就行了。
<script> initComponent: function(){ this.callParent(arguments); this.on('specialkey', function(f, e){ if(e.getKey() == e.ENTER){ this.onTrigger2Click(); } }, this); var _List = this.scope; _List.headerCt.on("headerclick", function(ct,column,e,t,opts) { console.dir(column); }); }, </script>
生命只有一次。