rTankersley
28 Nov 2011, 11:07 AM
Hey all,
I'm trying to make an editable grid. I basically copy/pasted the code from the editing example in the grid docs, and when that didn't work, I went to one of the large grid examples and used that code. Both caused the same error. Here is my grid and my store:
var store = Ext.create('Ext.data.Store', { fields: ['tag']
});
var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1
});
Ext.define('Eclipse.view.previewController.resourceEvalGrid', {
extend: 'Ext.grid.Panel',
alias: 'widget.resourceEvalGrid',
columns: [
{ header: 'Tag', dataIndex: 'tag', flex: 1, editor: { allowBlank: false} }
],
title: 'Insert Tags',
selModel: {
selType: 'cellmodel'
},
plugins: [cellEditing],
forceFit: true,
hideHeaders: true,
tbar: ['->', {
xtype: 'button',
text: 'Insert',
action: 'insert'
}]
});
I give the grid the store when I put it in a panel.
I can insert a record into the table, but when I click on it to edit it I receive this error:
Ext.fly(row) is null
return Ext.fly(row).down(column.getCellSelector());
Thanks for the help.
I'm trying to make an editable grid. I basically copy/pasted the code from the editing example in the grid docs, and when that didn't work, I went to one of the large grid examples and used that code. Both caused the same error. Here is my grid and my store:
var store = Ext.create('Ext.data.Store', { fields: ['tag']
});
var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1
});
Ext.define('Eclipse.view.previewController.resourceEvalGrid', {
extend: 'Ext.grid.Panel',
alias: 'widget.resourceEvalGrid',
columns: [
{ header: 'Tag', dataIndex: 'tag', flex: 1, editor: { allowBlank: false} }
],
title: 'Insert Tags',
selModel: {
selType: 'cellmodel'
},
plugins: [cellEditing],
forceFit: true,
hideHeaders: true,
tbar: ['->', {
xtype: 'button',
text: 'Insert',
action: 'insert'
}]
});
I give the grid the store when I put it in a panel.
I can insert a record into the table, but when I click on it to edit it I receive this error:
Ext.fly(row) is null
return Ext.fly(row).down(column.getCellSelector());
Thanks for the help.