Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    16
    Vote Rating
    1
    elettronik is on a distinguished road

      0  

    Default [4.1] grid selModel broke edit in ie8

    [4.1] grid selModel broke edit in ie8


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.1.1a
    Browser versions tested against:
    • IE8
    • Chrome 25.0.1364.172
    Description:
    • I created a grid, with cellediting plugin, and editable columns, if I click on a cell in chrome, appear an editable textfield, If I do the same thing in ie8, there are an error message:
    Code:
    Errore: 'this.store' is null or not an object
    with reference at
    Code:
    /**     
     * Returns position of the first selected cell in the selection in the format {row: row, column: column}
     */
      getCurrentPosition: function() {
            var firstSelection = this.selected.items[0];
            if (firstSelection) {
                return {
                    row: this.store.indexOf(firstSelection),
                    column: 0
                };
            }
        },
    in src/selection/RowModel.js


    Steps to reproduce the problem:
    • Open example
    • Click on one cell
    The result that was expected:
    • The cell should open an editor
    The result that occurs instead:
    • No editor will open,
    • IE pop up the error above
    Test Case:
    Code:
    Ext.define('Test.model.Person', {    extend: 'Ext.data.Model',
    
    
        fields: [{
            name: 'nome',
            type: 'string'
        }, {
            name: 'cognome',
            type: 'string'
        }]
    });
    
    
    Ext.create('Ext.data.Store', {
        model: 'Test.model.Person',
        storeId: 'person',
    
    
        data: [{
            nome: 'Luca',
            cognome: 'Conte'
        }, {
            nome: 'Valentino',
            cognome: 'Dell\'Aica'
        }, {
            nome: 'Pinco',
            cognome: 'Pallo'
        }]
    });
    
    
    Ext.create('Ext.panel.Panel', {
    
    
        renderTo: Ext.getBody(),
    
    
        layout: 'fit',
    
    
        items: [{
            xtype: 'grid',
            store: 'person',
            selModel: {
                mode: 'MULTI'
            },
            plugins: [
            Ext.create('Ext.grid.plugin.CellEditing', {
                clicksToEdit: 1
            })],
            columns: [{
                text: 'Nome',
                dataIndex: 'nome',
                editor: {
                    xtype: 'textfield'
                }
            }, {
                text: 'Cognome',
                dataIndex: 'cognome',
                editor: {
                    xtype: 'textfield'
                }
            }]
        }]
    });

    HELPFUL INFORMATION

    See this URL for live test case:
    http://jsfiddle.net/UkhAZ/

    Debugging already done:
    • the problem come up when adding selModel attribute to a grid, and the problem seem to be in method bindStore of class Ext.selection.Model, in the call of bindable mixin.
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • WinXP Pro

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,825
    Vote Rating
    88
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    I could not reproduce this issue on IE 8 version 8.0.6001.1702 on Windows XP Pro SP3.

Thread Participants: 1

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