PDA

View Full Version : Store field becomes undefined



ralfius
27 May 2012, 11:17 PM
Hi everybody. I have a problem with ext js v. 4.0 and don't actually know whether it's ext js bug but it seems to be so. The point is following: I have a grid, that is using cell-editing plugin. The grid has 2 columns (in real project there are more columns, but the bug is the same as in this code). In first column of that grid there is combobox that has grid in its lookup, in second - simple textfield. After changing the value of this combobox cell the store field of the second column become undefined. Nothing of my code changes this store field, but it changes when editing of combobox is completed and it becomes unfocused. The definition of the whole grid:


Ext.define('Order.view.TestGridView', {
extend: 'Ext.grid.Panel',
alias: 'widget.testGrid',
store: testInfoStore,

plugins: [
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1,
pluginId: 'testGridRowEditor'
}
})
],
columns: [
{
header: 'Test',
width: 80,
sortable: true,
dataIndex: 'TestId',
field: {
xtype: 'comboGrid',
store: testIdStore,
queryMode: 'local',
valueField: 'Code',
displayField: 'Code',
matchFieldWidth: false,
listConfig: {
width: 200,
columns: [
{
header: 'Code',
dataIndex: 'Code'
},
{
header: 'Name',
dataIndex: 'Description'
}
]
}
}
},
{
header: 'Priority',
width: 100,
sortable: true,
dataIndex: 'Priority', //this store field becomes undefined
field: {
xtype: 'textfield'
}
}]
});

Please help me with this issue. I have been searching for solution for several days but it hasn't given any result:(

ralfius
27 May 2012, 11:54 PM
Ooops. Have some external store change. Sorry for bothering you. Post can be deleted