昨天问了这个问题,但没有得到任何回应以不同的词再次发布 -
我有两列带有摘要行-
var cols = [
{ id: 'myCol1', header: 'Price1', dataIndex: 'PRICE1', type: 'float', width: 50, summaryType: 'sum' },
{ id: 'myCol2', header: 'Price2', dataIndex: 'PRICE2', type: 'float', width: 50, summaryType: 'sum' },
];
我想将 cellclick 事件添加到这些摘要行,以便单击时可以打开一个新窗口如果我使用网格的 cellclick 事件,它适用于除此摘要行之外的所有单元格。
有没有其他我可以使用的事件,以便我可以点击它。
更新:
我使用了以下侦听器,该侦听器不适用于摘要行
listeners: {
cellclick: function(grid, rowIndex, cellIndex) {
// do whatever
},
scope: this
}