Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic nodeCreating event for diagram (Read 1555 times)
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
nodeCreating event for diagram
Apr 30th, 2013 at 7:36am
Print Post  
Hi,

I have a problem that needs a solution.

Problem : When i drop a shape from the nodelistview control to the diagram or a container i need to do some check to see if that shape can be dropped. Based on that condition i need to allow and block the shape from getting added to diagram or container. I can do this in nodeCreating event. But unfortunatelly Mindfusion is not exposing such an event. So how can i achieve this?

I need a solution like below.
http://mindfusion.eu/Forum/YaBB.pl?num=1367226820
Let me know if there is any appropriate method to override.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: nodeCreating event for diagram
Reply #1 - Apr 30th, 2013 at 2:21pm
Print Post  
Hi,

This version raises nodeCreating also while dragging from the NodeListView:
https://mindfusion.eu/_beta/mvcdiag_js.zip

Unlike the case when drawing with mouse on the canvas, the actual node that will be added to the diagram does not exist yet, and args.getNode() returns what will be its prototype.

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