日期:2014-05-16  浏览次数:20698 次

无语,同样一段代码,Ext2.0可以用,Ext3.3就不行了,进来帮我看看 - Web 开发 / Ajax
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设为只读就那效果了