【问题标题】:Combobox filed in Extjs (6.x.x) sometimes it works fine and sometimes no在 Extjs (6.x.x) 中提交的组合框有时可以正常工作,有时不能
【发布时间】:2020-10-14 13:27:09
【问题描述】:

我在 extjs 中有以下组合框:

                    xtype: 'mcomboboxfield',
                    itemId: 'component1-'+i+'-mes-'+mesSeleccionado,
                    cls: 'component1-cls',
                    fieldLabel: 'PATRON',
                    height: 333,
                    flex: 4,
                    displayField: 'nombre',
                    valueField: 'codPatron',
                    editable: false,
                    queryMode: 'remote',
                    shadow : false,
                    left:0,
                    valueOriginal: codPatron,
                    value: codPatron ,
                    store : 'sPatronesTodos',
                    disabled: isWeekDisabled,
                    layout:{
                        type: 'hbox',
                        align: 'stretch'
                    },
                    listeners: {
                        afterrender: function(cmp) {
                            cmp.getStore().load();
                        },
                    }

有时可以正常工作,但有时会显示codPatron 而不是nombre。为什么会发生,我该如何预防?

【问题讨论】:

    标签: extjs extjs4 sencha-touch extjs5


    【解决方案1】:

    当后备存储中没有相应的条目时显示该值。要修复它,请确保后备存储中的每个值都有一个条目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-05-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多