Skip to main content
All docs
V24.1

ASPxClientGanttContextMenuEventArgs.htmlEvent Property

Gets the DHTML event object that contains information about the processed event.

Declaration

htmlEvent: any

Property Value

Type Description
any

An object that relates to the processed event.

Remarks

<dx:ASPxGantt ID="Gantt" ClientInstanceName="clientGantt" >
    //...
    <ClientSideEvents 
      ContextMenu="function(s, e) {
          menu.ShowAtPos(e.htmlEvent.x,e.htmlEvent.y);
      } 
      ContextMenuCustomization="function(s, e) {
          e.cancel = true;
      } 
    />
</dx:ASPxGantt>

<dx:ASPxPopupMenu runat="server" ID="popup" ClientInstanceName="menu">
    <Items>
        <dx:MenuItem Text="Item1">
        </dx:MenuItem>
        <dx:MenuItem Text="Item2">
        </dx:MenuItem>
    </Items>        
</dx:ASPxPopupMenu>

Run Demo: ASPxGantt - Context Menu Run Demo: MVCxGantt - Context Menu

See Also