,{
xtype: 'radiogroup',
itemCls: 'x-check-group-alt',
fieldLabel: 'Custom Layout
(w/ validation)',
allowBlank: false,
anchor: '95%',
items: [{
columnWidth: '.25',
items: [
{xtype: 'label', text: 'Heading 1', cls:'x-form-check-group-label', anchor:'-15'},
{boxLabel: 'Item 1', name: 'rb-cust1', inputValue: 1},
{boxLabel: 'Item 2', name: 'rb-cust1', inputValue: 2}
]
},{
columnWidth: '.5',
items: [
{xtype: 'label', text: 'Heading 2', cls:'x-form-check-group-label', anchor:'-15'},
{boxLabel: 'A long item just for fun', name: 'rb-cust2', inputValue: 3}
]
},{
columnWidth: '.25',
items: [
{xtype: 'label', text: 'Heading 3', cls:'x-form-check-group-label', anchor:'-15'},
{boxLabel: 'Item 4', name: 'rb-cust3', inputValue: 4},
{boxLabel: 'Item 5', name: 'rb-cust3', inputValue: 5}
]
}]
}
是这个着一大组都必须选定.而且样子也比较好看.
我想把每个都能是必添的'rb-cust1','rb-cust2','rb-cust3'都必须填写.
大家有什么办法么
[b]问题补充:[/b]
不行.一点效果都没有yourgame.还有别的办法么.着就是ext-3.0.0的那个例子中的一段..
[b]问题补充:[/b]
效果是这样的.(你可以看图,也可以看url http://www.extjs.com/deploy/dev/examples/form/check-radio.html)
url的最后一项是
Item 1
Item 2
A long item just for fun
Item 4
Item 5
着五个只要任意添一项就可以.
但我想Heading 1,Heading 2,Heading 3都是必添项
也就是说,
Item 1
Item 2
中必须有一个必添
Item 4
Item 5
中必须有一个必添
A long item just for fun
必须选种
才能通过allowBlank: false的验证.