PDA

View Full Version : how to create a button with a menu in a grid cell?



petchia
1 Jan 2008, 6:15 AM
I would like to have one of the columns in my Ext grid be populated with buttons. When the button is clicked it gives you a menu of options for that row.

I know that I can do this with a context menu, but my users aren't that sophisticated and won't know to right-click to get the context menu. So basically I want to be able to have a standard Ext button launch the menu similar to how it is launched from the toolbar.

Anyone done this or know how to?

halkon_polako
1 Jan 2008, 10:44 AM
On the handler of the button, just show the menu that you surely have created previously.