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);
                     }
                   }
            }
  • 相关阅读:
    在eclipse中快速多行注释的方法
    Android开发:去掉Activity的头部标题栏及全屏显示
    C#的Process类的一些用法
    C#中隐式操作CMD命令行窗口 (转)
    我的INI 配置文件读写动态库
    Android高手进阶教程(五)之----Android 中LayoutInflater的使用!
    Android高手进阶教程(六)之----Android 中MenuInflater的使用(布局定义菜单)!
    Android Menu 之 optionsMenu 详解
    centos安装php扩展
    linux 权限
  • 原文地址:https://www.cnblogs.com/qq1988627/p/6606951.html
Copyright © 2011-2022 走看看