Hi Hamid,
Please use diagram’s clientside API method
addSelection, which is used to add the selection for an element at runtime
. Please refer to the below code example.
Code example:
<div id="diagramcontent"></div>
<script>
var diagram = $("#diagramcontent").ejDiagram("instance");
var node = diagram.model.nodes[0];
diagram.addSelection(node);
</script>
Regards,
Shyam G