Menu for ASP.NET Web Forms
Changing Menu Item Triggers
Task-Based Help > Changing Menu Item Triggers

The C1Menu control can respond to different trigger events to open a menu item. This topic illustrates how to set the Trigger and TriggerEvent properties to change the trigger that opens the menu items in either the  Design View or the Source View.

In Design View

  1. Click the C1Menu smart tag to open the C1Menu Tasks menu.
  2. Click the Edit Menu link to open the C1Menu DesignerForm.

    C1Menu DesignerForm

  3. Locate the Trigger and TriggerEvent properties in the list.
  4. Set the Trigger property to .wijmo-wijmenu-item and then use the TriggerEvent drop-down list to choose a Trigger Event. For this task, set the Trigger Event to Rtclick as in the following image.

    C1Menu

  5. Click OK and then press F5 to  run your application. The submenus will appear when you right-click on the menu item.

In Source View

In Source View, add TriggerEvent="Rtclick" and Trigger=".wijmo-wijmenu-item" to the <cc1:C1Menu> tags.

Press F5 to run your project. Note that you now need to right-click a menu item to make the submenu drop down.