PDA

View Full Version : SplitButton issue



Sneha004
14 Mar 2012, 11:57 PM
Hi all,

I have one doubt on splitbutton.
I have added menu config for splitbutton like as follows :

menu : new Ext.menu.Menu({
id : 'menuId',
items : [{
text : 'item1',
itemId : 'item1Id'
}, {
text : 'item2',
itemId : 'item2Id'
}]
})

I have added the above one in one tab of tabpanel.
first time when I click on the split button, the menu is showing .
When I clicked on other tab then came to the current tab and clicking on split button ,the menu is not showing.
Is there any other way to add menu in splitbutton?

Please post here as soon as possible ..................:s

Sneha004
15 Mar 2012, 12:01 AM
I got the solution
I can write like
menu:{xtype:'menu',
id:'menuid',
}

:)