Hi,
I have an Ultratoolbarmanager on my form and an ultradropdownbutton. Ideally to have buttons in the ultradropdownbutton, i would customize the toolbarmanager and use the "Tools" and "PopupMenuToolDesigner" to add the buttons i need and update the PopUpitem in the Ultradropdownbutton control.
I need to do all this at run time. Any sample would be great.
Thanks in advance!
Renu
I believe i got it working. Attached is code:
ButtonTool button1 = new ButtonTool("Template1");
ButtonTool button2 = new ButtonTool("Template2");
PopupMenuTool newmenu = new PopupMenuTool("MenuTool");
button3.SharedProps.Caption =
"Template bulk 1";
button4.SharedProps.Caption =
"Template bulk 2";
newmenu.Tools.AddRange(
new ToolBase[] { button1, button2 });
ultraDropDownButton1.PopupItem = newmenu;