You found a bug! We've classified it as EXTJS-10707 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2009
    Posts
    11
    Vote Rating
    0
    bruce1058 is on a distinguished road

      0  

    Default RowEditor startEdit does not focus on column

    RowEditor startEdit does not focus on column


    ExtJS4.2.1.883, FireFox 22

    When using the grid row editor plugin, the startEdit function does not focus on the passed column argument.
    Additionally you should check your own demo code for the grid row editing, it doesn't work either.
    Additionally the documentation for startEdit columnHeader parameter in the Row Editor Plugin does not include Number as type, even though it does accept a Number.
    Here is a sample
    Code:
    Ext.create('Ext.grid.Panel',{
        frame: true,
        store: Ext.create('Ext.data.Store',{
            fields: ['car','driver'],
            data: [
                {car:'Ford',driver:'Joel'},
                {car:'Chevy',driver:'Tom'},
                {car:'Dolorian',driver:'Joel'}                       
            ]       
        }),
        plugins: Ext.create('Ext.grid.plugin.RowEditing', {
            clicksToEdit: 2
        }),
        columns: [
            {
                text: 'Car',
                dataIndex:'car',
                editor: {
                    xtype: 'textfield'   
                }
            },
            {
                text: 'Driver',
                flex: 1,
                dataIndex:'driver',
                editor: {
                    xtype: 'combobox',
                    queryMode:'local',
                    displayField:'label',
                    valueField:'value',
                    store: Ext.create('Ext.data.Store',{
                        fields: ['label','value'],
                        data: [
                            {label:'Joel',value:'Joel'},
                            {label:'Tom',value:'Tom'},
                            {label:'Sara',value:'Sara'}                       
                        ]
                    })                    
                }
            }
        ],
        dockedItems: [
            {
                xtype: 'toolbar',
                items: [
                    {
                        xtype: 'button',
                        text:'Add Car',
                        handler: function(btn) {
                            var store=btn.up('grid').getStore(),
                                grid =btn.up('grid')
                            store.insert( 0, {} );
                            grid.editingPlugin.startEdit(
                                store.getAt(0), grid.columns[0]
                            )                     
                        }
                    }
                ]        
            }                            
        ],
        renderTo:Ext.getBody()    
    });
    *EDIT BY SLEMMON
    startEdit fixed in next version SDK. Should address documentation gap.
    Last edited by slemmon; 19 Jul 2013 at 11:06 AM. Reason: additional bug info

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,770
    Vote Rating
    165
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

    The issue with startEdit is fixed in the next release, but I'm pushing the ticket up to address the documentation gap.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    Fort Collins, CO
    Posts
    12
    Vote Rating
    0
    Avman2119 is on a distinguished road

      0  

    Default


    I have build Build date: 2013-05-16 14:36:50 (f9be68accb407158ba2b1be2c226a6ce1f649314) and its the most recent upgrade release but this is still not fixed in it.

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2009
    Posts
    11
    Vote Rating
    0
    bruce1058 is on a distinguished road

      0  

    Default


    Thanks Avman2119 for the confirmation.
    Do you also have this problem with the Row Editor?

    http://www.sencha.com/forum/showthread.php?268353

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2009
    Posts
    11
    Vote Rating
    0
    bruce1058 is on a distinguished road

      0  

    Default


    Fixed in nightly build 20130813. ExtJS 4.2.2.989. Cheers

  6. #6
    Sencha User
    Join Date
    Jun 2011
    Posts
    1
    Vote Rating
    0
    bagautdinovaf is on a distinguished road

      0  

    Default


    I did in RowEditor.js change :

    startEdit: function(record, columnHeader) {
    ...
    //--- end of function ---
    if (!me.isVisible()) {
    me.show();
    me.focusContextCell();
    } else {
    me.reposition({
    callback: this.focusContextCell
    });
    }
    },
    // Focus the cell on start edit based upon the current context
    focusContextCell: function() {
    var field = this.getEditor(this.context.colIdx);
    if (field && field.focus) {
    field.focus();
    }
    }


    it work!

  7. #7
    Sencha User
    Join Date
    Jul 2012
    Location
    Fort Collins, CO
    Posts
    12
    Vote Rating
    0
    Avman2119 is on a distinguished road

      0  

    Default


    My apologies Bruce, I'll try to see if that is an issue unless it has been fixed in the new release? Please let me know.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar