How to Set ext radiogroup values and extradiogroup values

Source: Internet
Author: User

How to Set ext radiogroup values and extradiogroup values

 1 var radios = Ext.create('Ext.form.Panel', { 2     title: 'RadioGroup Example', 3     width: 300, 4     height: 125, 5     bodyPadding: 10, 6     renderTo: Ext.getBody(), 7     items:[{ 8         xtype: 'radiogroup', 9         fieldLabel: 'Two Columns',10         // Arrange radio buttons into two columns, distributed vertically11         columns: 2,12         vertical: true,13         items: [14             { boxLabel: 'Item 1', name: 'rb', inputValue: '1' },15             { boxLabel: 'Item 2', name: 'rb', inputValue: '2', checked: true},16             { boxLabel: 'Item 3', name: 'rb', inputValue: '3' },17             { boxLabel: 'Item 4', name: 'rb', inputValue: '4' },18             { boxLabel: 'Item 5', name: 'rb', inputValue: '5' },19             { boxLabel: 'Item 6', name: 'rb', inputValue: '6' }20         ]21     }]22 });

 

Set the checked to true.
Var val = radios. down ('radiogroup'). getValue () ['rb'];

From Baidu Q & A, address: https://zhidao.baidu.com/question/981847790759065939.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.