Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic the nodes are haphazardly placed in the diagram when diagram is loaded. (Read 8440 times)
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
the nodes are haphazardly placed in the diagram when diagram is loaded.
Mar 2nd, 2013 at 12:12pm
Print Post  
Hi Stoyo,
Thanks for your help previously. Let me add, it was great.
I am working with mindfussion. diagramming diagram. what I do is when I save the diagram nodes in the database. I save the z index of each node with it. Now when I retrieve the data, add the node which I get in the collection from database. The nodes do contains the z index as per which they are saved, but on screen, the nodes are haphazardly placed. That is to say, if a node A has z index 2, it get placed behind node B, which has z index 1.
But as soon as I add another node in the diagram, each node in the diagram gets arranged as they should.
Can anyone please tell me how I make the nodes to get arrange in UI as per their z index when they are loaded?
Thanks in advance. Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: the nodes are haphazardly placed in the diagram when diagram is loaded.
Reply #1 - Mar 4th, 2013 at 1:05pm
Print Post  
Hi,

It sounds as if you are seeing the effect of the SelectionOnTop property. Either disable it, or do not select new items (see also SelectAfterCreate property).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Re: the nodes are haphazardly placed in the diagram when diagram is loaded.
Reply #2 - Mar 19th, 2013 at 10:17am
Print Post  
Hi stoyo,

I did not find these property. Where have i to set it. help me?

Thanks in advance  Sad
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: the nodes are haphazardly placed in the diagram when diagram is loaded.
Reply #3 - Mar 19th, 2013 at 11:02am
Print Post  
Sorry, I now see we haven't implemented this in Silverlight. We'll try to add it for next release.
  
Back to top
 
IP Logged
 
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Re: the nodes are haphazardly placed in the diagram when diagram is loaded.
Reply #4 - Mar 20th, 2013 at 4:54am
Print Post  
Hi stoyo,

Is there any solution to how overcome from this problem.

Thanks in advance. Sad
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: the nodes are haphazardly placed in the diagram when diagram is loaded.
Reply #5 - Mar 20th, 2013 at 5:38pm
Print Post  
Hi,

Are you using the version 3 beta or an older version? Older versions accept as ZIndex values only numbers between 0 and diag.Items.Count -1, and if you aren't adding the items in increasing order sorted by their saved ZIndex, you won't be able to restore the original Z order. You shouldn't have that problem with version 3, where ZIndex property can contain arbitrary values.

Stoyan
  
Back to top
 
IP Logged
 
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Re: the nodes are haphazardly placed in the diagram when diagram is loaded.
Reply #6 - Mar 21st, 2013 at 5:19am
Print Post  
Hi stoyo,

Thanks for your advice.

Yes i am using old version 2.3.0.16766. If i will take higher version then what will be effect on my existing code? Can I use it?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: the nodes are haphazardly placed in the diagram when diagram is loaded.
Reply #7 - Mar 21st, 2013 at 6:41am
Print Post  
Hi,

You can find the changes you will need to make listed at http://mindfusion.eu/Forum/YaBB.pl?num=1361465592 under API Changes heading.

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