Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mindfusion Diagram with additional properties (Read 1914 times)
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Mindfusion Diagram with additional properties
Oct 24th, 2013 at 7:19pm
Print Post  
Hi,

Can I define some custom properties to Diagram object and save to Xml and retrieve from xml.
The same object can I get it in java script also?

What i need is something similar to the CustomNode sample. Please provide me some samples if any.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mindfusion Diagram with additional properties
Reply #1 - Oct 25th, 2013 at 10:32am
Print Post  
Hi,

You can save custom properties in XML by overriding the Diagram.SaveToXml(XmlDocument document) method. However you cannot do that for Json serialization at this time. You could still transfer custom properties to client side by assigning them to Diagram.Tag, e.g. as an encoded string composed of several values.

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