代码杂记。

来源:互联网 发布:淘宝客服挂起 编辑:程序博客网 时间:2024/05/05 20:03

随手记在这儿。

2013-7-25

//radio取值/赋值

obj.winfPDtlShowType = new Ext.form.RadioGroup({
id : 'DtlShowType',
    fieldLabel: '显示类型',
    columns: 'auto',
  //  disabled: true,
    items: [
        {boxLabel: '表格',  name: 'DtlShowType', inputValue: 'grid'},
        {boxLabel: '图表',  name: 'DtlShowType', inputValue: 'chart', checked: true},
        {boxLabel: '多系列图表',  name: 'DtlShowType', inputValue: 'mschart'}
    ]
});

取值  Ext.getCmp("DtlShowType").getValue().inputValue

赋值  Ext.getCmp("DtlShowType").setValue(_record.get('DtlShowType'));

原创粉丝点击