我使用Extjs 6.5,并且我的网格具有一个rowwidget
插件,该插件也具有一个网格和rowwidget
插件,expandbody
事件仅在第一个情况下触发 rowwidget
并且不会为第二行小工具触发,知道为什么吗?
plugins:[{
ptype: 'rowwidget',
widget: {
xtype: 'panel',
layout: 'vbox',
title: 'Service details',
SrvID: 0,
SrvType: 0,
items:[{
xtype: 'grid',
viewConfig:{
cls:'grdDetails'
},
/* plugin*/
plugins:[{
ptype: 'rowwidget',
widget: {
xtype: 'grid',
viewConfig:{
cls:'grdDetails'
},
columnLines: false,
rowLines: false,
enableColumnHide: false,
enableColumnMove: false,
enableColumnResize: false,
forceFit: false,
disableSelection:true,
hrIndx: '0',
columns: [],
store: null,
hideHeaders: true,
listeners: {
expandbody: function (rowNode, record, expandRow,e){
console.log('Expanding...');//this is NOT firing
}
},
bind: {
}
},
onWidgetAttach: function (plugin, grdpax, record) {
}
}],
/*plugin end*/
columnLines: false,
rowLines: false,
enableColumnHide: false,
enableColumnMove: false,
enableColumnResize: false,
forceFit: false,
disableSelection:true,
columns: [],
store:null,
hideHeaders: false,
}],
listeners: {
afterrender: function (pnl) {
}
},
bind: {
}
},
onWidgetAttach: function (plugin, pnl, record) {
}
}];