Skip to main content

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