Hello,
I have a checkboxgroup with a couple of checkbox, what I would like to do is when the first box is checked the others should be checked too but I have no idea how to proceed to achieve that.
What I've done so far is to use a listener and I guess in my checkAll() function I should retrieve all the checkbox of the group but I don't know how to do.
Thanks for giving me some information to do that.
Code:
{
layout: 'column',
items: [
{
columnWidth: .1,
border: 'true',
layout: 'fit',
items:
{
xtype: 'checkboxgroup',
id: 'group-D',
columns: 1,
items: [
{ boxLabel: '<b>D</b>',
name: 'D',
listeners: {
check: checkAll
}
},
{
boxLabel: 'D1',
name: 'D1'
},
{
boxLabel: 'D2',
name: 'D2'
},
{
boxLabel: 'D3',
name: 'D3'
},
{
boxLabel: 'D4',
name: 'D4'
}
]
}
}