How to turn off the Chart Legend Properties Dialog

Is there any way to turn off the properties dialog when clicking on the legend without disabling the visible checkbox. Setting Legend.Enabled = false disables the legend completely hence the user cannot change the visibility of series or move the legend around. I just want to turn off the properties dialog for the legend and the individual series.

Mushtaque --

1 Reply

AD Administrator Syncfusion Team March 6, 2007 02:45 AM UTC

Hi Mushtaque,

Thank you for using Syncfusion products.

Inorder to disable editing the Style settings in the Chart control, Please try the following code and let me know if this helps.

[C#]

//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 ;

Regards,
Rajesh

Loader.
Up arrow icon