getbogged
22 Sep 2012, 6:18 AM
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?
38863
scottmartin
22 Sep 2012, 9:49 AM
I was not able to duplicate this problem, can you duplicate your problem in a test case?
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.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.