EditorGridPanel 下拉框编辑,显示值,隐藏值问题
2013-05-30 09:44
429 查看
editor : new Ext.form.ComboBox({ allowBlank:false, editable:false, blankText : '采购单位不能为空', triggerAction : 'all', valueField : 'id', displayField : 'name', mode : 'remote', getRawValue:function(){//重写getRawValue()方法使其获取显示值 if(this.valueField){ return Ext.isDefined(this.value)?this.value:""; }else{ return Ext.form.ComboBox.superclass.getValue.call(this); } }, getValue:function(){//重写getValue()方法使其获取隐藏值 //在EditorGridPanel中,combo调用的是此方法,但是只能获取隐藏值 var a = this.rendered?this.el.getValue():Ext.value(this.value,""); if(a===this.emptyText){ a=""; } return a; }, store : new Ext.data.Store({ url : '${ctx}/admin/getDictionaryList.do?code=MeasureUnit', reader : new Ext.data.JsonReader({ root : 'list' },[ {name : 'id',type : 'string'}, {name : 'name',type : 'string'} ]) }), listeners:{ 'select' : function(e){ } } })
相关文章推荐
- android EditText彻底搞定输入框隐藏/显示背景 可编辑输入问题
- extjs的EditorGridPanel中的ComboBox列中显示值的问题
- 关于android使用design:25.1.0及以上包后,使用自定义behavivor(上拉隐藏,下拉显示)的view隐藏后不再显示的问题
- ExtJS EditorGridPanel中时间日期编辑问题的总结
- ExtJS EditorGridPanel中时间日期编辑问题的总结
- 黄聪:PowerPoint设计编辑动画的时候图层隐藏和显示问题
- extjs的EditorGridPanel中的ComboBox列中显示值的问题
- android EditText彻底搞定输入框隐藏/显示背景 可编辑输入问题
- 关于项目中依赖的design版本升级过后,项目中的自定义behavivor(上拉隐藏,下拉显示)的view隐藏后不再显示的问题解决方案
- 关于华为手机自定义view中NavigationBar显示与隐藏造成高度问题的解决办法
- 解决easyui动态隐藏或显示列导致列表排版错乱的问题
- 下拉框值改变触发隐藏和显示
- Tabbar上拉隐藏下拉显示
- ultragrid列的问题下拉列表框可编辑等等
- [转]VC中ComboBox下拉列表不显示数据或下拉表高度太小的问题
- jqueryMobile footer/header问题 显示隐藏的问题
- BootStrap中Table隐藏后显示问题的实现代码
- 关于标签栏隐藏和显示的问题
- 关于BehaviorEditorPart 不显示的问题(出自msdn)