`
qq1988627
  • 浏览: 102506 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

支持模糊检索的combox

EXT 
阅读更多
{
             width : 219,
             xtype : 'combo',
             fieldLabel : '料号',
             id : 'stock_feedNum',
             name : 'stock.feedNum',
             hiddenName : 'stock.feedNum',
             valueField : 'material_name',
             minChars : 1,
             typeAhead: true,
             forceSelection: true,
             displayField : 'material_name',
             mode : 'remote',
             queryParam : 'query',
             store : ds_num,
             selectOnFocus : true,
             editable : true,
             allowBlank : false,
             triggerAction : 'all',
             loadingText : '加载中...',
             emptyText : '料号',
             listeners : { // 获得下拉文本内容,解决id,value都要的情况
             'select' : function(combo, record, index) {
                    Ext.getCmp('stock_depict').reset();
                    Ext.getCmp('add_unit').reset();
                    ds_feed.baseParams.feedNum = Ext.getCmp('stock_feedNum').getValue();
                    ds_feed.reload();
                    getMatDescByMat(Ext.getCmp('stock_depict'),record.data.material_name);
                    this.ownerCt.ownerCt.form.findField('stock.feedNum').setValue(record.data.material_name);
                 }
               }
        }
  • 大小: 5.9 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics