在ExtJS网格中获取列标题

在ExtJS网格中获取列标题,extjs,header,grid,Extjs,Header,Grid,我正在尝试检索ExtJS网格中每条记录的列标题 目前,我通过以下方式获取值: cellclick: function(view, td, cellIndex, record, tr, rowIndex, e, eOpts) { for(i=0; i < columns.length-1; i++){ currentRecordKey = columns[i].dataIndex; newRecord[currentRecordKey]

我正在尝试检索ExtJS网格中每条记录的列标题

目前,我通过以下方式获取值:

cellclick: function(view, td, cellIndex, record, tr, rowIndex, e, eOpts) {
    for(i=0; i < columns.length-1; i++){
            currentRecordKey = columns[i].dataIndex;
            newRecord[currentRecordKey] = record.get(currentRecordKey);
            console.log(newRecord[currentRecordKey]);
            /** var = Code to retrive each records column header **/
cellclick:函数(视图、td、cellIndex、记录、tr、行索引、e、eOpts){
对于(i=0;i
到目前为止,我试过的东西都不管用,有什么想法吗?

找到了答案:

currentRecordKey
始终保持此值