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

Selecting segments

Thread ID:





107678 Mar 12,2013 07:04 AM UTC Mar 20,2013 07:42 AM UTC Silverlight 2
Tags: Chart
Hayley Tibben
Asked On March 12, 2013 07:04 AM UTC


I have a column chart with two series that both have selection enabled, which allows the user to select one segment in each series at any time. Is there a way to only allow one segment to be selected at any time regardless of the series??


Karthikeyan V [Syncfusion]
Replied On March 13, 2013 11:45 AM UTC

Hi Hayley,

Thanks for using Syncfusion products.

We have analyzed the reported requirement. You can achieve your requirement by applying the following code snippet.

Code Snippet[C#]:

void series2_MouseClick(object sender, ChartMouseEventArgs e)


    for (int i = 0; i < area.Series.Count; i++)


       for (int j = 0; j < area.Series[i].Segments.Count; j++)


           if (area.Series[i].Segments[j].Interior != area.Series[i].Interior)


              area.Series[i].Segments[j].Interior = area.Series[i].Interior;





    e.Segment.Interior = Brushes.Yellow;


We have prepared the sample based on this, please find the sample in the following location.

Please let us know, if you have any concerns.


Karthikeyan V.


Hayley Tibben
Replied On March 20, 2013 07:42 AM UTC

Thanks for your help! That is exactly what I needed.


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