mixcherry
23 Mar 2007, 3:22 AM
Hi!
I created a ToolBar with MenuButton. This is my menu code:
var sortingMenu = new Ext.menu.Menu({
id: 'sortingMenu',
text: 'Sort by...',
items: [
new Ext.menu.CheckItem({
text: 'Name',
checked: true,
group: 'sorting'
}),
new Ext.menu.CheckItem({
text: 'Type',
group: 'sorting'
}),
new Ext.menu.CheckItem({
text: 'Size',
group: 'sorting'
}),
new Ext.menu.CheckItem({
text: 'Modification',
group: 'sorting'
})
]
});
How can I get the chcecked radio item? What if I had two groups? How could I get checked radio item from certain group?
I created a ToolBar with MenuButton. This is my menu code:
var sortingMenu = new Ext.menu.Menu({
id: 'sortingMenu',
text: 'Sort by...',
items: [
new Ext.menu.CheckItem({
text: 'Name',
checked: true,
group: 'sorting'
}),
new Ext.menu.CheckItem({
text: 'Type',
group: 'sorting'
}),
new Ext.menu.CheckItem({
text: 'Size',
group: 'sorting'
}),
new Ext.menu.CheckItem({
text: 'Modification',
group: 'sorting'
})
]
});
How can I get the chcecked radio item? What if I had two groups? How could I get checked radio item from certain group?