BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Tim
Thanks for using Syncfusion products.
Currently we don’t have the support “custom selector style for the diagram control”. We consider this as a feature request and created a new incident 135396 on behalf of you related to this forum. We suggest you to follow up the incident for further reference using your direct trac account.
Please let me know if any concerns.
Regards,
Shyam G
Hi Tim
Thanks for the update.
We suggest you to use “SelectionChange” client side event in order to achieve your requirement. Please refer the below code snippet and sample for your references.
Code snippet:
//define selectionchange event
DiagramWebControl1.OnClientSelectionChange = "selectionchange";
function selectionchange(args) {
var diagram = $("#DiagramWebControl1").ejDiagram("instance");
if (args.element) {
var node = diagram.selectionList[0];
if (node) {
if (args.changeType == "insert") {
diagram.updateNode(node.name, { borderColor: "red", width: 150 });
}
if (args.changeType == "remove") {
diagram.updateNode(node.name, { borderColor: "black", width: 100 });
}
}
}
}
Sample:http://www.syncfusion.com/downloads/support/directtrac/general/nodebordercolor1975421132.zip
Please let me know if any concerns.
Regards,
Shyam G