Page Index Toggle Pages: 1 ... 6 7 [8] 9 10 ... 21 Send TopicPrint
Locked Topic Link between two nodes (Read 157356 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #105 - Jun 18th, 2014 at 1:49pm
 
Check if you aren't explicitly loading MicrosoftAjax.js via <script> tag. If so - remove it, and add an <asp:ScriptManager> to the page, which loads corresponding ajax scripts automatically.

Note that &amp;quot; in your current XML will show as &quot; in the node texts instead of " symbol. Change it to just &quot; when generating XML to see " in texts, and it will work with Ajax v3.5 too then.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #106 - Jun 20th, 2014 at 4:06am
 
No, I am not using MicrosoftAjax.js via <script> tag.

actually its not possible to change &amp;quot; to &quot; because i m encoding quotes (").

Code:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #107 - Jun 20th, 2014 at 7:49am
 
XML-encoded quote (") is just &quot; so put that in your XML or you will not see " in the nodes otherwise. With &amp;quot; you are trying to both xml- and html- encode it, but the JsonSerializer does its own html encoding so you don't need to add ampersands. If you insist on generating the XML yourself, at least use the .NETs XML API and pass plain un-encoded text values to its methods, they will apply necessary encodings.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #108 - Jun 23rd, 2014 at 5:08am
 
Can u send me link from which I can download Ajax 4.0 DLL.

because in previous comments you said it works properly in 4.0
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #109 - Jun 23rd, 2014 at 6:36am
 
I want draw flowchart like below screen shots and there is (+) expand button for each square when i click on that button it expands and displays actual flowchart.

Can you send some details as well as sample codes to draw like that.
  

PF.jpg (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #110 - Jun 23rd, 2014 at 8:38am
 
Quote:
Can u send me link from which I can download Ajax 4.0 DLL. because in previous comments you said it works properly in 4.0


You do not need the Ajax 4 dlls, you need to fix your XML. Content like &amp;quot; in the XML file is xml-unescaped to &quot; in the node texts, and I think you want to show " symbols instead to your users. To get " symbols, replace &amp;quot; with &quot; in the XML file, and Json serialization will work with either version of MS.Ajax.

If you really want to show &quot; to your users, then keep &amp;quot; in the XML, and change the project target framework from project options to ASP.NET 4 to use MS.Ajax 4.
« Last Edit: Jun 23rd, 2014 at 9:47am by Stoyo »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #111 - Jun 23rd, 2014 at 10:34am
 
Quote:
I want draw flowchart like below screen shots and there is (+) expand button for each square when i click on that button it expands and displays actual flowchart.


Try adding the nodes from separate flowcharts to a ContainerNode by calling ContainerNode.Add(childNode). Set the container's Foldable property to true to let users expand / collapse it.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #112 - Jun 24th, 2014 at 4:50am
 
Okay fine can u send me sample XML file so that i can built in that way....
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #113 - Jun 24th, 2014 at 7:43am
 
You can find attached your file with all &amp;quot; replaced with &quot; it loads successfully under ASP.NET 3 too.
« Last Edit: Jun 24th, 2014 at 9:19am by Stoyo »  

IF1000-if1000_001.TXT (Attachment deleted)
quotes.png (Attachment deleted)
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #114 - Jun 24th, 2014 at 1:15pm
 
shrinivas wrote on Jun 23rd, 2014 at 6:36am:
I want draw flowchart like below screen shots and there is (+) expand button for each square when i click on that button it expands and displays actual flowchart.

Can you send some details as well as sample codes to draw like that.


Please see this i am not able to use container node for this please send me XML format from which i can generate this type of diagram.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #115 - Jun 25th, 2014 at 5:03am
 
Can u please send me sample XML for attached diagram
  

PF_001.jpg (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #116 - Jun 25th, 2014 at 8:20am
 
You can create sample xml by calling the SaveToXml method:

Code
Select All
var container = diagram.Factory.CreateContainerNode(0, 0, 100, 100);
var child1 = diagram.Factory.CreateShapeNode(10, 10, 30, 30);
container.Add(child1);
var child2 = diagram.Factory.CreateShapeNode(50, 50, 30, 30);
container.Add(child2);
diagram.Factory.CreateDiagramLink(child1, child2);
var outerNode = diagram.Factory.CreateShapeNode(110, 10, 30, 30);

diagram.SaveToXml("test.xml"); 



I hope that helps,
Stoyan
  

test_xml.txt (Attachment deleted)
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #117 - Jun 26th, 2014 at 4:58am
 
For this type of diagram which layout is suitable?
  

PF_002.jpg (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #118 - Jun 26th, 2014 at 10:26am
 
Try LayeredLayout with EnforceLinkFlow property enabled.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #119 - Jun 26th, 2014 at 11:04am
 
No its not working with layered layout, please see attached image
  

PF_003.jpg (Attachment deleted)
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 6 7 [8] 9 10 ... 21
Send TopicPrint