please can somebody point me in the direction of a really simple example of how to use an ultradropdownbutton.
all i need to do is create a dropdown button with three standard menu entries on it.
i've had a look at the sample app that comes with NetAdvantage 2008 vol 1 and its so overly complicated that i just don't seem to be able to get my head around it...
thanks in advance
Hi,
Which part of this is giving you trouble? UltraDropDownButton is pretty straightforward. You just have to assign it an object that implements the IPopupItem interface. There are basically two classes that do this. One if the UltraPopupControlContainer, which is for when you want to drop down a control. The other is the UltraToolbars menu tool for when you want to drop down a menu. It looks like you want the latter here.
So you would need an UltraToolbarsManager on your form with a Menu tool and a couple of child tools (Option 1, Option 2).
It also looks like you want to put a UltraDropDOwnButton in to the tabs of an UltraTabControl. There's no easy way to do that, you'd have to use a CreationFilter. Or do you just want to use images instead of actual buttons?
Another option would be to simply use a right-click context menu, in which case, you would not need the UltraDropDownButton at all.
In fact, the more I look at this screen shot, the more I think you might be making this a lot more complicated than it needs to be. If you just want to drop down a menu when the user clicks on a tab, you don't need an UltraDropDownButton at all, you could simply use UltraToolbarsManager and programmatically drop down the menu whenever and wherever you want.
Did you ever find a simple example for the ultradropdownbutton. I'm looking to create this with the infragististics controls but with no success.
Any examples that contain the ultradropdownbutton are either incomplete or way too cluttered with code not relevant to the ultradropdownbutton implementation to be of use.
Much Thanks
Hi Chris,
In that case, you would do something like this:
tool.InstanceProps.IsFirstInGroup = true;
i'm not using the designer since the popup menu entries are dynamic based on data content.
outside of the designer I cannot find any reference to a 'beginagroup' or 'begingroup' property on any control.
i've searched the controls, the online help and the KB. what 'begin a group' property are you talking aboutthanks for your help so far
Basically you need to set the Begin a Group property on the tool where you want the separator to appear. If you used the PopupMenuToolDesigner as I suggested, then you can just right-click on a tool and select the Begin a Group option on the menu.