Back to Devexpress

ASPxClientGanttContextMenuEventArgs.htmlEvent Property

aspnet-js-aspxclientganttcontextmenueventargs-7323f1cc.md

latest1.5 KB
Original Source

ASPxClientGanttContextMenuEventArgs.htmlEvent Property

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

Declaration

ts
htmlEvent: any

Property Value

TypeDescription
any

An object that relates to the processed event.

|

Remarks

aspx
<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

Event Object

DHTML Object Model

ASPxClientGanttContextMenuEventArgs Class

ASPxClientGanttContextMenuEventArgs Members