aspnet-js-diagrameditoperation-dot-changeconnectorpoints.md
Identifies the ChangeConnectorPoints operation.
static readonly ChangeConnectorPoints: string
| Type | Description |
|---|---|
| string |
Returns “ChangeConnectorPoints”.
|
The operation parameter returns the ChangeConnectorPoints value if the RequestEditOperation event fired because a user changed a connector’s points.
<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
<ClientSideEvents RequestEditOperation="onRequestEditOperation" />
...
function onRequestEditOperation(s, e) {
if(e.operation === DiagramEditOperation.ChangeConnectorPoints) {
if(e.args.newPoints.length > 2) {
if(e.reason !== DiagramRequestEditOperationReason.CheckUIElementAvailability)
showWarning("You cannot add points to a connector.");
e.allowed = false;
}
}
...
}
The RequestEditOperation event does not fire for the ChangeConnectorPoints operation if the AllowChangeConnectorPoints property is set to false.
See Also