Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Editing the title in one Diagram node (Read 3252 times)
praveenbattula
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 22
Joined: Apr 6th, 2010
Editing the title in one Diagram node
Apr 8th, 2010 at 1:05pm
Print Post  
Hi,
Thanks for all your help so far to get things done as per the requirements.
Now, I am facing a simple problem and takes time to figure it out.
I am done with all requirement and diagram generated with no problems in Silverlight.

Now, client asked us to add a extra label on the top of diagram and make it editable. Because when they want to take print out they will change the label of the diagram and take print out. For this, I have added extra diagram node to the diagram and placed it on the top of the diagram.

But, because of not setting the property AllowInplaceEdit = true for diagram, the node is not editable. How to tell the diagram only the specific node is editable. Why the framework not supporting the property for DiagramNode?

Please help me out here. I am done everything this small thing is stopping us to push it.

-Praveen.
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Editing the title in one Diagram node
Reply #1 - Apr 8th, 2010 at 2:52pm
Print Post  
Hi Praveen,

Handle NodeClicked or NodeDoubleClicked and call diagram.BeginEdit(e.Node) if it's the label node.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Anjana
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Aug 5th, 2011
Re: Editing the title in one Diagram node
Reply #2 - Aug 5th, 2011 at 5:30am
Print Post  
hi 

1)how to do  flowcht  diagram is not editable but we can select shape of node.

2) how to restrict draw a shape  using mouse control in diagramview .


please help me.its urgent.........

Thanks
Anjana
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Editing the title in one Diagram node
Reply #3 - Aug 5th, 2011 at 6:03am
Print Post  
Try the following code:

Code
Select All
diagram.Behavior = MindFusion.Diagramming.Silverlight.Behavior.Modify;
diagram.NodeModifying += (s, e) => e.CancelDrag();
diagram.NodeDeleting += (s, e) => e.CancelDrag();
diagram.LinkModifying += (s, e) => e.CancelDrag();
diagram.LinkDeleting += (s, e) => e.CancelDrag(); 


The code sets the diagram behavior to Modify, which prevents interactive creation of items. The four event handlers prevent interactive modifications. Items can still be selected.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint