MenuPilot - Open-Source Context Menu for ASP.NET 2.0

Configuring menu items

You can configure the menu items using MenuItems property editor:

Each MenuItem has following properties:

NavigateUrl

Url of the menu item. Examples:

  • "http://www.google.com"
  • "javascript:alert('Action clicked.');"

If you use {0} as a part of NavigateUrl, e.g.:

  • "javascript:alert('Action clicked for id {0}');"

it will be replaced by the value of the Value property of a MenuPilot control. This is useful when you use MenuPilot controls in GridView or Repeater controls: Bind the item id to Value property and then use it to identify the control in the menut item action.

See this in action in HyperLink in GridView demo.

Target

Target of the menu item (e.g. a frame id).

Text

Menu item text.

Use "-" (hyphen) to show a separator. Other properties (NavigateUrl, Target, and Title) are ignored for separators.

Title

Title (ToolTip) of the menu item (appears when mouse is over the menu item).

Tip: The new version of DayPilot 2.2 - open-source event calendar/scheduling control for ASP.NET was released recently:

You can download the sources and binaries.