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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

click on datapoint

Thread ID:





98218 Feb 15,2011 06:44 AM UTC Feb 21,2011 04:42 AM UTC Silverlight 3
Tags: Chart
amar patil
Asked On February 15, 2011 06:44 AM UTC

I am using silverlight syncfusion chart controls.

I have a specific scenario where I need to handle click event on a datapoint(column bar).

In the click event I need the datacontext(the object that bar is bound to) of the bar.

I have been through the documentation and found that I could get the DataPoint's x and y value using currSegment.

But I need to access other properties of the object to which this bar is bound to.

For Example:

"Mychart" is name of Silverlight Syncfusion chart controls, here I bind state and population properties to a Mychart Control and ListData is object of list

C# Code:

MyChart.Areas[0].Series[0].BindingPathX = "State";

MyChart.Areas[0].Series[0].BindingPathsY = new List {"Population"};

MyChart.Areas[0].PrimaryAxis.LabelsSource = ListData;

MyChart.Areas[0].PrimaryAxis.ContentPath = "State";

MyChart.Areas[0].PrimaryAxis.PositionPath = "State";

Xaml code :

In Xaml Code I have taken MouseLeftButtonDownEvent ,Actually I want access another properties of my Object .when I am going to Click on bar column of state , I need to get its another information(Capital , City : this are another properties of the object ).

Saravanan A [Syncfusion]
Replied On February 16, 2011 01:29 PM UTC

Hi Amar,

Thanks for choosing Syncfusion products.

Based on your requirement we have created a simple sample, in which all the properties of highlighted data points will be accessed and displayed in tooltip. Please download the sample from below location.


Please let us know if you have any queries.


amar patil
Replied On February 17, 2011 01:27 PM UTC

thank's a lot !!

Krishna Kumar [Syncfusion]
Replied On February 21, 2011 04:42 AM UTC

Hi Amar,

Thanks for choosing Syncfusion products.

Thanks for your reply. Please do not hesitate to post new forums if you ever need further assistance from us.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon