zoukankan      html  css  js  c++  java
  • 支持模糊检索的combox

    {
                 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);
                     }
                   }
            }
  • 相关阅读:
    【芯片】国产MCU替代ST芯片调查
    【生产线】包装如何防止配件漏装
    【标准】运输振动试验
    【bat】批量提取文件夹内文件的名称
    【VBA】从批量excel文件中获取数据
    【滤波器】抗混叠滤波器
    【元器件】晶振TCXO、OCXO
    【C】三点求抛物线顶点
    德卡T10读卡器 读取身份证号码和身份证UID
    C# 执行查询语句,返回DataSet
  • 原文地址:https://www.cnblogs.com/qq1988627/p/6606951.html
Copyright © 2011-2022 走看看