I'm wondering how I create a drop down menu button using Infragistics? (That is, the user hits a button, a number of options drop down, such as Save, Delete, Print, and the user can select one).
I think I have to use an UltraDropDownButton and an UltraToolbarsManager together somehow, but I cant for the life of me work it out. I think the WinMisc-Basic Features sample has what I'm after, but I'm having trouble working it out from that example.
Can anyone offer a few pointers?
Thanks.
This might help get you started:
1. Add an UltraToolbarsManager to your Form
2. Right-click on the toolbars manager in the component tray and select 'Customize...'
3. Click the 'Tools' tab in the customize dialog.
4. Click the 'New' button and add a in the tool type combo, select 'Popup Menu'
5. Specify a key to identify the menu (don't worry about the caption as it will not be seen) and click 'Add'
6. Change the tool type to 'Button' (or any other type of item you want in your drop down).
7. Add the tools you want to be seen in your drop down the same way you added the popup menu.
8. Click 'Close' on the 'New Tool' dialog
9. Select the 'PopupMenuTool Designer' tab on the customize dialog.
10. In the 'Current Menu' drop down, select the popup menu added in step 5.
11. Drag the tools you want in your drop down from the 'Available Tools' section to the section on the left.
12. Click 'Close' in the customize dialog
13. Add an UltraDropDownButton to the Form and select the new button.
14. In the VS property grid, drop down the arrow for the PopupItem property and select the popup menu added in step 5.
Basically, steps 1-12 deal with defining a drop down menu. The last two steps deal with how to use that menu in a separate drop down control.
I would like to emulate the toolbar functionality shown in the image below. So 'Reply' button directly on toolbar is functional by itself. User would have to click on the arrow and select one of the four reply options ONLY if he needs a less common reply option. Most of the time the user would use Reply button on toolbar.
Is the following suggestion the way to go? Thanks in advance! Are there any samples in the KB I can follow?
Thanks in advance!
Mike Dour"] 9. Select the 'PopupMenuTool Designer' tab on the customize dialog. 10. In the 'Current Menu' drop down, select the popup menu added in step 5. 11. Drag the tools you want in your drop down from the 'Available Tools' section to the section on the left. 12. Click 'Close' in the customize dialog 13. Add an UltraDropDownButton to the Form and select the new button. 14. In the VS property grid, drop down the arrow for the PopupItem property and select the popup menu added in step 5.
Mike Dour"]This might help get you started:
Do these steps still work with v8.1? I have just upgraded my project from infragistics v7.3 to v8.1, as well as from VS2005 to VS2008, and it seems the above steps no longer work, even on a form which was previously working (I hadnt changed it - just upgraded it).
--- EDIT ---
Just had a quick look at an older version in which I had only upgraded Infragstics (not visual studio) - this one doesnt work either. An even older (compiled and installed on another computer) version which uses infragstics 7.3 works just fine.
This is ridiculous...
My project is very large and since we do deployments over the web we don't want it getting any bigger than it must be.
We already have the Win.Misc.Dll included in our project, and so i thought hey this is great... that dropdownbutton is exactly what i need and i can use it without needing any extra Dlls.
Obviously i'm wrong, because it seems to me that the dropdownbutton is useless without the ultratoolbarsmanager, which is another Dll altogether.
This is really disappointing. The control is exactly what i need but i cant use it because you need to add additional dll's to your project to actually use it, which we can not afford. Why cant there just be a .Items collection for those of us that don't need fancy infragistics menus?
Thank you both - Mikes instructions were right on the money.