Horizontal radio classic layout of extjs2.0

Source: Internet
Author: User
I think what you need most is this layout.
 
However, searching Google is either too complicated to add subsequent radio to render, or a large box is added in fieldset mode. But what I want is the above method.

After testing, the above radio horizontal layout can be achieved. The key is to set the layout of the table and the isformfield of the radio row to true, which is especially important to set the isformfield, because panel does not belong to formfield by default, the label is not displayed even if the fieldlabel attribute is set.

The JS that generates this window is as follows:

(New Ext. Window (...{
ID: 'Hall _ addprjwindow ',
Title: 'title ',
Layout: 'fit ',
Width: 500,
Height: 300,
Buttonalign: 'center ',
Closeaction: 'hide ',
Modal: True,
Items :[...{
Xtype: 'form ',
Width: 400,
Frame: True,
Defaulttype: 'textfield ',
Items :[...{
ID: 'prjnm ',
Fieldlabel: 'Project name ',
Name: 'prjnm ',
Value :''
},...{
Xtype: 'panel ',
Layout: 'table ',
Fieldlabel: 'Project authorization ',
Defaulttype: 'Radio ',
Isformfield: True,
Items :[...{
Name: 'prjpermissioncode ',
Boxlabel: 'Free access ',
Value :''
},...{
Name: 'prjpermissioncode ',
Boxlabel: 'verification required ',
Value :''
}]
},...{
ID: 'prjstartupdate ',
Fieldlabel: 'expected start date ',
Name: 'prjstartupdate ',
Value :''
}]
}],
Buttons :[...{
Text: 'create a new Project ',
Handler: function ()...{

}
}]
}). Show ();

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.