Intercept the double click on a series in the Legend

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

4 Replies

AD Administrator Syncfusion Team September 21, 2007 04:23 AM UTC

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


SG Simone Galleni September 26, 2007 01:10 PM UTC

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


AD Administrator Syncfusion Team September 26, 2007 06:44 PM UTC


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


AD Administrator Syncfusion Team January 22, 2010 07:54 PM UTC

Was this enhancement ever considered?

Loader.
Up arrow icon