PDA

View Full Version : How can i use more than buttongroup on panel using extjs4.2?



hshahul
1 Aug 2014, 3:51 AM
i have used two buttongroup but was not able to select one from fist buttongroup and another one selecte from second buttongroup. If selected one and another button in buttongroup, old selected item removed. Example:

layout:'column',
border:false,
items:[{
columnWidth: .20,
xtype: 'buttongroup',
id:'month',
itemId: 'menu1',
group: 'rb-auto1',
name:'check1' ,
title: '<b>Month</b>',
items: [
{text: 'Jan', group: 'rb-auto', name:'check1' },
{text: 'Feb', group: 'rb-auto', name:'check1'},
{text: 'Mar', group: 'rb-auto', name:'check1'}
]
},{
columnWidth: .20,
xtype: 'buttongroup',
id:'Day',
name:'check2' ,
group: 'rb-col2',
title: '<b>Day</b>',
items: [
{text: 'Item 1', group: 'rb-col', name:'check2'},
{text: 'Item 2', group: 'rb-col', name:'check2'},
{text: 'Item 3', group: 'rb-col', name:'check2'}
]
}]

thanx advance...

skirtle
1 Aug 2014, 5:51 AM
ButtonGroups don't create toggle buttons. You'll need to set toggleGroup.

I'm guessing that what you're describing as selection is actually just focus styling.

hshahul
4 Aug 2014, 8:15 PM
Thanking you...