开发者

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:

Creating multiple forms in the cycle

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 ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜