I am needing to get the selected node information on mouse click and then i am adding other information and assigning methods to the node (think workflow but is irrelivent) |
When we click on any nodes, connector or in the diagram, Clicked event gets triggered. Through clicked event args we can identify whether we click on node or other element. In the args through selector nodes we can find in which node we have clicked. After get the node, you can change the node property.
| |
Another issue that i am having is that it is taking the ID from the pallet nodes and not the diagram. I have the nodes ID auto named. |
Could you please confirm us, whether you want the same ID when drag and drop the node from palette to diagram. If yes, then by default, while drop the node in diagram we have add randomID at last to the node ID. Because in the diagram nodes and connectors should be unique. We do not set same ID for the nodes and connectors.
If we misunderstood your requirements, please share us more details of your requirement or pictorial representation of your requirement. This would help us to serve you better. |
i am needing the nodes to be named in sequential order |
Could you please confirm us, whether you want to same ID for node when drag and drop node from palette to diagram. If yes, then as we said earlier, we cannot able to add node with given ID when drag and drop node from palette. When drag and drop the node from palette to node, we add four randomId() charcters at last of the node id.
If you want to render the node directly in diagram means then you can able to add node Id as below code snippet
| |
Documentation for Datasource settings |
Please refer below UG documentation link for the diagram data source settings property
|