如题。。
下拉框无论选第几项都显示第一项。。求解决
在线等急
代码如下
xtype: 'combo',
fieldLabel: '终端类型',
store : new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url:'showType.action?classID=10222'}),
reader: new Ext.data.JsonReader({
root: 'cdList'
},[
{name:'classID1',mapping:'classID'},
{name:'optionName1',mapping:'optionName'}
]),
autoLoad : true
}),
hiddenName : 'classID1',
triggerAction : "all",
valueField : 'classID1',
displayField : 'optionName1',
emptyText : "请选择...",
mode:'remote',
editable:false
下拉框无论选第几项都显示第一项。。求解决
在线等急
代码如下
xtype: 'combo',
fieldLabel: '终端类型',
store : new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url:'showType.action?classID=10222'}),
reader: new Ext.data.JsonReader({
root: 'cdList'
},[
{name:'classID1',mapping:'classID'},
{name:'optionName1',mapping:'optionName'}
]),
autoLoad : true
}),
hiddenName : 'classID1',
triggerAction : "all",
valueField : 'classID1',
displayField : 'optionName1',
emptyText : "请选择...",
mode:'remote',
editable:false
解决方案 »
- 消息: 对象不支持此属性或方法 IE兼容性问题
- 怎样实现用js弹出文件保存窗口,选择一个路径后,将该文件完整路径提交到服务器端
- 有没有什么技术可以实现html的select属性翻页
- document.all.left_bm.style.display与 document.all.left_sys.style.display问题
- 如何将客户端查询的结果(页面显示成表格),现如何将这个表格导出生成Execl表?
- extjs 用cookie保存用户习惯隐藏列 刷新之后列显示不正常
- jqgrid里面的触发器只能触发一次,有没有办法能够解决?
- 用js实现上滚下滚问题
- 访问ftp服务时弹出的那个用户密码输入框是怎么实现的?
- 在javascript怎样禁止“后退”按钮?
- 执行10次停止执行
- htmleditor的滚动条问题
proxy : new Ext.data.HttpProxy({
url : 'servlet/VehicleServlet'
}),
reader : new Ext.data.JsonReader({
fields : [{
name : 'vtypeid'
}, {
name : 'vtype'
}]
}),
listeners : {
'beforeload' : function(sto, params) {
params.params.type = 'queryVehicleType';
},
'load' : function(store, records, options) {
if (records.length != 0) {
panel.vehicle_use_id.setValue(1);
}
}
}
});
panel.vehicle_type_idstore.load();
this.vehicle_type_id = new Ext.form.ComboBox({
fieldLabel : '车辆品牌',
labelWidth : 10,
minListWidth : 100,
anchor : '80%',
name : 'vehicle_type_id',
hiddenName : 'vehicle_type_id',
valueField : 'vtypeid',
displayField : 'vtype',
forceSelection : true,
triggerAction : 'all',
emptyText : '选择选择品牌',
typeAhead : true,
editable : false,
lazyInit : true,
lazyRender : true,
autoShow : true,
store : panel.vehicle_type_idstore
});
要让STORE自动加载。而不是吧STORE提出来。。
怎么解hiddenName 是用来在后台接受值的。。不能去掉。