We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

bindign data to a symbol in diagram

Hi,

Is there a way in syncfusion where i can bind data retrived from a webservice directly to a symbol?
I shuld be able to dynamically update the symbol based on the value from webservice.

Thanks in advance,
Subbu

3 Replies

MW Melba Winshia Syncfusion Team June 18, 2010 10:43 AM UTC

Hi Subbu,

Thank you for contacting Syncfusion Support.

Please refer to the following code snippet to bind the data retrieved from a webservice to a symbol:


//Webservice
ValidateUser VU = new ValidateUser();

//Get value from webservice and set to Label
Syncfusion.Windows.Forms.Diagram.Label label = new Syncfusion.Windows.Forms.Diagram.Label(e1, VU.HelloWorld());


Please refer to the sample in the following link which illustrates this:

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=DiagramWebService-632755244.zip

Please try this and let me know if this helps.

Thanks,
Melba




SK subbu kammela June 22, 2010 05:33 AM UTC

Thanks for your reply,

I missed giving some details.
I am looking for this feature in silverlight.Utlizing the XAML features.Is there a way for acieving this?

Regards,
Subbu


DV Deepa V Syncfusion Team June 27, 2010 05:53 PM UTC

Hi Subbu,

Thank you for your interests in Syncfusion Products.

Please refer to the following code snippet to bind the data retrieved from a webservice to a symbol:


//Webservice connection
ServiceReference1.ServiceSoapClient client = new DiagramWebServiceDemo.ServiceReference1.ServiceSoapClient();
client.HelloWorldCompleted += new EventHandler(client_HelloWorldCompleted);
client.HelloWorldAsync();

//Get value from webservice and set to content of a node (NewClient)
NewClient.Content = e.Result;


Please refer to the sample attached to illustrate this.

Please let me know if you have any further queries.

Regards,
Deepa V






DiagramWebServiceDemo_5ae24a64.zip

Loader.
Live Chat Icon For mobile
Up arrow icon