Hi!
I'm trying to put DropDownMenu type button on the Toolbar. On the button I see the picture and the arrow, but the menu is not shown. What am I doing wrong?
ToolBar1 was draged & droped from the ToolBox.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
EO.Web.ToolBarItem toolBarItem = new EO.Web.ToolBarItem();
toolBarItem = new EO.Web.ToolBarItem();
toolBarItem.Type = EO.Web.ToolBarItemType.DropDownMenu;
toolBarItem.ImageUrl = "00101007";
EO.Web.Menu menu = new EO.Web.Menu();
EO.Web.MenuItem menuItem = new EO.Web.MenuItem();
menuItem.Text = "Item 1";
menu.Items.Add(menuItem);
menuItem = new EO.Web.MenuItem();
menuItem.Text = "Item 2";
menu.Items.Add(menuItem);
menuItem = new EO.Web.MenuItem();
menuItem.Text = "Item 3";
menu.Items.Add(menuItem);
toolBarItem.DropDownMenuID = menu.ID;
ToolBar1.Items.Add(toolBarItem);
}
}
Thank you,
Jerzy