- JScript code
items: [{ xtype:"hidden", name: "Id"}, { fieldLabel: "姓名", name: "Name", allowBlank: _readOnly }, { fieldLabel: "年龄", name: "Age", vtype: "age", allowBlank: _readOnly }, { xtype: "combo", store: new Ext.data.SimpleStore({ fields: ["Sex","id"], data: [["男","1"], ["女","2"]] }), mode: "local", hiddenName: "Sex", fieldLabel: "性别", displayField: "Sex", valueField:"id", readOnly: true, disabled: _readOnly, triggerAction: "all", value:"2" } ] });
在FormPanel中添加一个一个combo,用Ext2.0可以出现下拉的效果,在Ext3.3中,无法点击出下拉效果,怎么回事
------解决方案--------------------
readOnly: true,
3.3设为只读就那效果了