PDA

View Full Version : EditorGridpanel ist not editable



mannyk
16 Aug 2010, 6:47 AM
Hello,
I am working with the Designer and having problems to implement a EditorGridPanel.
The cells of the pannel cannot be edited.

Below you see the final code of the grid panel.


xtype: 'editorgrid',
title: 'Test',
store: 'AddressCustomStore',
id: 'CustomAddressGrid',
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'Key',
header: 'Name',
sortable: true,
width: 100,
id: 'Key',
editor: {
xtype: 'textfield'
}
},
{
xtype: 'gridcolumn',
header: 'Value',
sortable: true,
width: 100,
dataIndex: 'Value',
id: 'Value',
editor: {
xtype: 'textfield'
}
}
]Thank you very much in advance!
mannyk

rkaat
24 Aug 2010, 5:20 AM
Try the following code for your editors:


editor: new Ext.form.TextField({
// Set TextField specific properties
});
- There is also no need to use xtype: 'gridcolumn', as gridcolumn is the default type for a column.