【问题标题】:Getting the column header in ExtJS grid获取 ExtJS 网格中的列标题
【发布时间】:2013-12-10 15:23:26
【问题描述】:

我正在尝试检索 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 **/

到目前为止,我没有尝试过任何工作,有什么想法吗?

【问题讨论】:

    标签: extjs header grid


    【解决方案1】:

    想通了:

    currentRecordKey 一直持有这个值

    【讨论】:

      猜你喜欢
      • 2011-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多