Skip to main content
A newer version of this page is available. .
All docs
V20.2

ASPxClientGanttContextMenuItem.target Property

Gets or sets the window or frame where to locate the content of the Url associated with the current menu item.

Declaration

target: string

Property Value

Type Description
string

The window or frame.

Remarks

The Target property is in effect if the ASPxClientGanttContextMenuItem.navigateUrl property is specified.

Member Description
name The name of the target window or frame.
_blank Opens the linked document in a new blank window. This window is not named.
_parent Loads the linked document into the parent document.
_search Adds the linked document to the browser search pane.
_self Opens the linked document in the window in which a user clicked the link (the active window).
_top Opens the linked document in the topmost window.
<dx:ASPxGantt ID="Gantt" ClientInstanceName="clientGantt" >
    //...
    <ClientSideEvents
      ContextMenuCustomization="function(s, e) {
          ...
          // Creates an item
          var customItem = new ASPxClientGanttContextMenuItem();
          customItem.name = 'Item1';
          customItem.text = 'Item1';
          customItem.navigateUrl = '/location.aspx';
          customItem.target = '_blank';

          // Adds the item to the context menu items
          e.menuItems.Add(customItem);
      }
    />
</dx:ASPxGantt>

Examples

See Also