how to prevent legend properties to show on double click

currently when a user clicks on the legend of a chart i have created, they get the property editor... i don't want to give them that functionality, as it is dangerous for my app... is there a way to disable it?

1 Reply

RF Rashidha F Syncfusion Team July 17, 2007 05:41 AM UTC

Hi Kamen,

Thanks for using Syncfusion Products.

If your intention is to turn off the properties dialog when double click on the legend means, please use the following code snippet in your application.

//Disable the Legend property edit window and series style edit window
this.chartControl1.Legend.Style = ChartLegendStyle.Empty;

//Disable series style edit window only.
this.chartControl1.Legend.Style = ChartLegendStyle.SupportEditProperties;

//Disable Legend property edit window only.
this.chartControl1.Legend.Style = ChartLegendStyle.SupportItemStyleEdit;

Please let me know if this helps.

Regards,
Rashidha.

Loader.
Up arrow icon