Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Help (Read 1791 times)
bbbbbaai
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Aug 5th, 2012
Help
Aug 11th, 2012 at 12:24pm
Print Post  
How can i get the id of the Node user drew in the diagram?Can i get the Node'id from *.aspx.cs using c#? And how?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Help
Reply #1 - Aug 13th, 2012 at 6:27am
Print Post  
There is a DiagramItem.Id property, but it is intended to be assigned by you and is not set automatically by the control. You could set it on the client side by calling e.getNode().setId() from NodeCreatedScript, and after postback you will be able to access it on the server via node.Id. For example, you could keep an integer counter as value of diagram.Tag, and increment and assign it to new nodes' Id when users draw them.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint