Ext.form.RadioGroup 和 Ext.form.Radio 基本定义

概述:  RadioGroup内含多个Radio,每个Radio.name必须相同,选中事件RadioGroup不提供,Radio子组件自行处理
功能:  选择一个Radio,动态加载GridPanel.


new Ext.form.RadioGroup({
        //fieldLabel : "资料选择",    //RadioGroup.fieldLabel 标签与 Radio.boxLabel 标签区别
       hideLabel : true,   //隐藏RadioGroup标签
       items : [
                  new ({                          //三个必须项
                               checked : true,                       //设置当前为选中状态,仅且一个为选中.
                                boxLabel  : "书籍借阅",        //Radio标签
                                name  : " borrow ",                    //用于form提交时传送的参数名
                                inputValue  : " book ",               //提交时传送的参数值
                                listeners  : {
                                     check : function(checkbox, checked) {         //选中时,调用的事件
                                                             if (checked) {
                                                                      borrow_grid.reconfigure(book_store,book_cm);  //动态重新加载GridPanel
                                                                      book_store.load();
                                                             }
                                                  }
                               }
                   }), 
                   new Ext.form.Radio({            //以上相同
          boxLabel : "期刊借阅",
          name : " borrow ",
          inputValue : " magazine ",
          listeners : {
           check : function(checkbox, checked) {
            if (checked) {
             borrow_grid.reconfigure(magazine_store,magazine_cm);
             magazine_store.load()
            }
           }
          }
         }), new Ext.form.Radio({
          boxLabel : "标准借阅",
          name : " borrow ",
          inputValue : " standard ",
          listeners : {
           check : function(checkbox, checked) {
            if (checked) {
             borrow_grid.reconfigure(
               standard_store,
               standard_cm);
             standard_store.load();
            }
           }
          }
         })]
      })
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值