Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Information-Server (Read 2689 times)
heni86_2003
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Dec 6th, 2011
Information-Server
Dec 6th, 2011 at 12:30pm
Print Post  
Hi,

I'm using the MindFusion Diagramming for SilverLgiht, and I would like to know how we can retrieve the information from the server side.

Thank you
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Information-Server
Reply #1 - Dec 6th, 2011 at 12:35pm
Print Post  
Hi,

What kind of information? Do you mean you need to submit the diagram drawn by users on client side and parse object relations, labels, etc on the server?

Stoyan
  
Back to top
 
IP Logged
 
heni86_2003
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Dec 6th, 2011
Re: Information-Server
Reply #2 - Dec 6th, 2011 at 12:51pm
Print Post  
I filled out the diagram from an xml file. And I would like get the changed data and stored in sharepoint.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Information-Server
Reply #3 - Dec 6th, 2011 at 1:40pm
Print Post  
If you need to store it in your custom format, you could use the Linq for Xml API to generate an XDocument and send the XDocument.ToString() result to the server. E.g. this saves in format similar to the one shown in Tutorial 1:

Code
Select All
var doc = new XDocument(
	new XElement("Graph",
		new XElement("Nodes",
			from ShapeNode n in diagram.Nodes select new XElement(
				"Node", new XAttribute("id", n.ZIndex), new XAttribute("name", n.Text))),
		new XElement("Links",
			from l in diagram.Links select new XElement(
				"Link",
				new XAttribute("origin", l.Origin.ZIndex),
				new XAttribute("target", l.Destination.ZIndex)))
	)); 



Or you could use the control's intrinsic XML format to store and load data. In such case use the SaveToString and LoadFromString methods of Diagram.

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