All docs
V20.2
20.2
20.1
19.2
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.

ASPxClientDiagram.ItemClick Event

Fires after a shape or connector is clicked.

Declaration

ItemClick: ASPxClientEvent<ASPxClientDiagramItemClickEventHandler<ASPxClientDiagram>>

Event Data

The ItemClick event's data class is ASPxClientDiagramItemClickEventArgs. The following properties provide information specific to this event:

Property Description
item Gets an object that provides information about an item (DiagramShape or DiagramConnector) related to the event.

Remarks

<dx:ASPxDiagram ID="Diagram" runat="server" ClientInstanceName="diagram" >
    <ClientSideEvents ItemClick="function(s, e) { 
      if (e.item instanceof DiagramShape) 
        console.log('shape')
      if (e.item instanceof DiagramConnector) 
        console.log('connector')
    }"/>
</dx:ASPxDiagram>

Run Demo: Client-Side Events

See Also