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.
Unfortunately, activation email could not send to your email. Please try again.

Intercept the double click on a series in the Legend

Thread ID:

Created:

Updated:

Platform:

Replies:

68356 Sep 19,2007 06:08 AM Jan 22,2010 02:54 PM Windows Forms 4
loading
Tags: Chart
Simone Galleni
Asked On September 19, 2007 06:08 AM

Hi all,

the standard behaviour for the double click on a series of the legend is to open the series configurator (color, symbol, etc...).

I'd like to avoid this (I know how to disable the opening of series configuration dialog) but I'd like to cast an event that says "the series XYZ has been click in the legend".

How can be done this?

Many thanx in advance

Administrator [Syncfusion]
Replied On September 21, 2007 12:23 AM

Hi Ampelio,

Thank you for using Syncfusion products.

I am afraid it is not possible to directly raise event for particular legend object.

But as a workaround , you can set 'VisibleCheckBox' property for the legend object and raise alert using CheckedChanged event.

The following code snippet illustrates this.

[C#]

this.chartControl1.Legend.Items[0].CheckedChanged+=new EventHandler(Series1_CheckedChanged);

Please refer the modified ChartLegendSample and let me know if this helps you.

http://websamples.syncfusion.com/samples/Chart.Windows/F68356/main.htm

Regards,
Jaya

Simone Galleni
Replied On September 26, 2007 09:10 AM

Thanks Jaya,

unfortunately we are using the chech boxes to show/hide series, so we cannot use them to generate a "series double click" event.

May I suggest you to add this feature for future version?
Regards,

Ampelio

Administrator [Syncfusion]
Replied On September 26, 2007 02:44 PM


Hi Ampelio,

Thanks for the update.

If your intention is to raise double click for the series in the ChartLegend, then it is not possible . Since ChartLegend is rendered as an image ,you cannot access the series in it. You can apply only the customizations to ChartLegend that I specified in the previous post.

Anyhow we have logged 'Add ability to raise double click for the series in the ChartLegend' as a feature request and notified our development team. We will implement this feature in our forthcoming new version releases or service pack releases. We usually have a timeframe of at least three months between releases. The feature implementation would also greatly depend on the factors like product design, code compatibility and complexity. We will get back to you once the feature is implemented.

Thanks for suggesting this feature.

Please let us know if you have any other queries.

Regards,
Jaya

Administrator [Syncfusion]
Replied On January 22, 2010 02:54 PM

Was this enhancement ever considered?

CONFIRMATION

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.

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.

;