Results 1 to 4 of 4

Thread: Extjs 6.5 2d level of rowwidget doesn't fire expandbody?

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    39
    Answers
    3

    Default Extjs 6.5 2d level of rowwidget doesn't fire expandbody?

    I use Extjs 6.5 and my grid has a rowwidget plugin which also has a grid and rowwidget plugin, the expandbody event fires only for the first rowwidget and doesn't fire for the second rowwidget, any idea why?

    rw1000.png

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

  2. #2
    Sencha - Support Team
    Join Date
    Sep 2017
    Posts
    67

    Default

    Thank you for reporting this issue!
    I am looking into this and will get back you shortly.

    Regards,
    Joe

    Sencha Support


  3. #3
    Sencha Staff
    Join Date
    Sep 2017
    Posts
    126
    Answers
    1

    Default

    Hi,

    I see that in a nested grid events are working properly. Please check the below fiddle:
    https://fiddle.sencha.com/#view/editor&fiddle/2jaa

    The listeners are fired only on the view, not on the grid. you would need to add them to the view through the grid's viewConfig property.

    Regards
    Pavan

    Sencha Support

  4. #4
    Sencha User
    Join Date
    Oct 2012
    Posts
    39
    Answers
    3

    Default

    Thank you very much works as expected.

Similar Threads

  1. [INFOREQ] RowWidget doesn't work with widgets that have an hbox layout
    By vadimv in forum Ext JS 6.x Bugs
    Replies: 6
    Last Post: 2 Nov 2016, 3:35 PM
  2. [OPEN] [Extjs 4.2.0] RowExpander doesn't fire events
    By eldono in forum Ext:Bugs
    Replies: 7
    Last Post: 7 Oct 2016, 6:03 AM
  3. [NOREPRO] 4.2.1 Top level menu doesn't fire handler event in IE 8
    By dougbieber in forum Ext:Bugs
    Replies: 2
    Last Post: 18 Jun 2013, 10:58 AM
  4. Replies: 1
    Last Post: 20 May 2011, 4:13 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •