Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to know parent container while drag and drop (Read 5576 times)
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
How to know parent container while drag and drop
Jan 15th, 2014 at 11:26am
Print Post  
Hi,

I need to know the parent container while drag and dropping a shape to a container node.

In the node created event i am not getting the parent container.
node.container is always null.

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to know parent container while drag and drop
Reply #1 - Jan 16th, 2014 at 7:27am
Print Post  
Hi,

node.container is not set yet in nodeCreated, but later in containerChildAdded. You could call diagram.getNodesAt() from nodeCreating/Created handler and check the returned array for ContainerNodes. With version 1.7 you can also detect that from containerChildAdding validation event:
http://mindfusion.eu/Forum/YaBB.pl?num=1389802691

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Re: How to know parent container while drag and drop
Reply #2 - Jan 17th, 2014 at 9:56am
Print Post  
Hi Stoyan,

Could you please let us know the release date for Version 1.7?

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to know parent container while drag and drop
Reply #3 - Jan 17th, 2014 at 1:14pm
Print Post  
End of January.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Re: How to know parent container while drag and drop
Reply #4 - Jan 29th, 2014 at 2:04pm
Print Post  
Hi Stoyan,

Is it released?

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to know parent container while drag and drop
Reply #5 - Jan 30th, 2014 at 5:07pm
Print Post  
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint