All docs
V20.2
21.1 (EAP/Beta)
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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