Creating a Drop-Down Menu
Use the HasDropDownButton and DropDownContextMenuId properties to create a drop down menu for the C1WebToolbar item. Complete the following:
Add and Modify a C1WebToolBar
1. Add a C1WebToolBar control on the Web page via drag-and-drop.
2. Select Edit Groups from its C1WebToolBar Tasks menu. The C1WebToolBarGroup Collection Editor appears. Click on the Add button to add a new Group.
3. Select Group [1]. Click on the ellipsis button next to the Items property. The C1WebToolBarItem Collection Editor appears. Click on the Add drop down button to add a C1WebToolBarItem from the C1WebToolBarItem Collection Editor.
4. Set the new C1WebToolBarItem's Text property to Button1. Select OK. The new Button1 appears in the C1WebToolBar.
Add and Modify a C1WebMenu
1. Add a C1WebMenu control on the Web page via drag-and-drop.
2. Select Edit from the C1WebMenu Tasks menu. The C1WebCommandEditor appears.
3. Change C1WebMenu1's ID property to menu1 and its ContextMenu property to Custom. Select OK.
4. Right-click on the C1WebMenu control and select Refresh.
Set C1WebToolBar's Drop-Down Properties
1. Right-click on the C1WebToolBar control and select Edit Groups from its context menu. The C1WebToolBarGroup Collection Editor appears. Select the Group [1] and click on the ellipsis button next to the Items property. The C1WebToolBarItem Collection Editor appears.
2. Select the LinkItem – Button1 and set its HasDropDownButton property to True and its DropDownContextMenuId to menu1. Select OK.
3. A drop-down arrow appears on the c1webtoolbar item, button1.
4. Run the application and click on the drop-down arrow for Button1. The drop down menu appears for Button1.
|