Clay Banks
Clay Banks

Reputation: 4591

Getting the column header in ExtJS grid

I'm trying to retrieve the column header for each record in my ExtJS grid.

Currently I get the values with:

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 **/

So far nothing I've tried works, any ideas?

Upvotes: 1

Views: 2283

Answers (1)

Clay Banks
Clay Banks

Reputation: 4591

Figured it out:

currentRecordKey held this value all along

Upvotes: 2

Related Questions