Results 1 to 2 of 2

Thread: Grid RowEdit error

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    29
    Answers
    2
    Vote Rating
    5
      0  

    Default Unanswered: Grid RowEdit error

    This error will pop up and not allow the user to edit any more cells in the grid one it starts. It seems to happen when the user clicks too fast or too many times inside a cell. Its very weird. The only way to get rid of it is to refresh the page. I am using extjs 4. Anyone have a solution for this?

    extjs error.jpg

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,389
    Answers
    716
    Vote Rating
    498
      0  

    Default

    I was not able to duplicate this problem, can you duplicate your problem in a test case?

    Code:
    Ext.onReady(function(){
        var store = Ext.create('Ext.data.Store', {
            storeId:'simpsonsStore',
            fields:['name', 'email', 'change'],
            data:{'items':[
                { 'name': 'Lisa',  "email":"lisa@simpsons.com",  "change":100  },
                { 'name': 'Bart', "email":"bart@simpsons.com", "change":-20  },
                { 'name': 'Homer', "email":"home@simpsons.com",  "change":23   },
                { 'name': 'Marge', "email":"marge@simpsons.com", "change":-11   }
            ]},
            proxy: {
                type: 'memory',
                reader: {
                    type: 'json',
                    root: 'items'
                }
            }
        });
    
        var editor = {
            xtype: 'textfield',
            allowBlank: false
        };
    
        var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
            clicksToMoveEditor: 1,
            autoCancel: false
        });
    
        Ext.create('Ext.grid.Panel', {
            title: 'Simpsons',
            store: store,
            columns: [
                { header: 'Name',  dataIndex: 'name', editor: editor  },
                { header: 'Email', dataIndex: 'email', flex: 1, editor: editor },
                { header: 'Change', dataIndex: 'change', editor: editor }
            ],
            height: 200,
            width: 400,
            renderTo: Ext.getBody(),
    
            plugins: [rowEditing]
        }); 
    
    });?
    Scott.

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
  •