Creating multiple forms in the cycle
The problem is that in the derivation of several forms, the field VerticalsComboBox shifts to the previous form. Here's a picture:
Main code:
Ext.each(Ext.getCmp('TypesGrid')...,function(item,index){
var rec = Ext.getCmp('TypesGrid').getStore().getById(item.data.id);
var form = new Application.TypesForm();
form.title = 'Edit Type';
form.getForm().loadRecord(rec);
Ext.getCmp('TypesFormTab').add(form);
});
TypesForm:
Application.TypesForm = Ext.extend(Ext.form.FormPanel, {
initComponent : function() {
Ext.apply(this, {
defaultType : 'textfield',
开发者_JS百科items : [
{ fieldLabel : 'Id', ... },
{fieldLabel : 'Type *', ...},
{ xtype : 'VerticalsComboBox',...}
]
});
...
In VerticalsComboBox nothing unusual. there creates a combo box, it takes data to ajax. How decide this problem ?
精彩评论