Hello Stoyo
I want to get the node id. I write the following code
private void diagramView1_Click(object sender, EventArgs e)
{
try
{
diagramView1.Focus();
DiagramView sn = (DiagramView)sender;
var selectedShapeNode = sn.Diagram.ActiveItem as ShapeNode;
if (selectedShapeNode != null)
{
int id = (int)selectedShapeNode.id;
MessageBox.Show("id = " + id);
}
}
catch
{
}
}
When I click on node first time it set null or wrong id. On Second time time click on same node that it gives correct id. I want to get id on single click.
One more think I got the id which is drag from treelist.I want to get the id which is I store in database for a particular node.
As per privious diagram (
http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=131079995...)
I have added more than one item in single node(many times drag items are repeatedly add in digramview node).When I select one node(two nodes fill same items from treelist) that time I got same id. That’s why I want to set the id for perticular node. In this node I set multiple items at a time. When I click the node I want to get that node id not a drag item id.