Extjs 6.5 2d级rowwidget不会触发expandbody吗?

时间:2018-07-08 13:17:56

标签: extjs

我使用Extjs 6.5,并且我的网格具有一个rowwidget插件,该插件也具有一个网格和rowwidget插件,expandbody事件仅在第一个情况下触发 rowwidget并且不会为第二行小工具触发,知道为什么吗?

enter image description here

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) {
                  
        }        
  }];  

0 个答案:

没有答案