Results 1 to 2 of 2

Thread: [4.2.1] Grid rowexpander with textfield inside

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    140
    Answers
    6

    Default [4.2.1] Grid rowexpander with textfield inside

    Hi everyone,

    I'm facing a problem, where I need to put several textfields inside the rowexpanders body. But, I cannot set the cursor inside the textfield. Everything it does is (de)selecting the grid row, and if I turn off the selection in general (that is no option at all) it still does not focus the text field.

    Does anyone have an idea how to solve this?

    This is how I create the textfields.

    PHP Code:
    plugins: [
            
    Ext.create('Ext.grid.plugin.CellEditing', {
                
    pluginId'cellEdit',
                
    triggerEvent'celldblclick'
            
    }),
            
    Ext.create('Ext.grid.plugin.RowExpander', {
                
    pluginId'rowExpander',
                
    rowBodyTpl : new Ext.XTemplate('<div id="timings-expd-{muobId}"></div>'),
                
    toggleRow: function(rowIdx,record) {

                    
    //do some magic stuff

                    
    var container Ext.create('Ext.form.Panel', {
                        
    rowrow,
                        
    layout'hbox',
                        
    items: [{
                            
    xtype'textfield',
                            
    fieldLable'test'
                        
    }]
                    });
                        
                    
    rowNode.container container;
                        
                    
    container.render(targetId);
                                   
    //and some more magic stuff
                
    }
            })
        ] 
    Thank you!

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    Hi,

    Though it may be possible to inject components into grid cells / rows it's not supported in ExtJS 4.
    Components in grid cells is supported in ExtJS 5, but 5 still supports only Ext.XTemplate / HTML presently.

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
  •