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>

 

 

posted @ 2012-06-19 16:26  ﹏Sakura  阅读(4049)  评论(1编辑  收藏  举报