BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi,
I would like to programmatically check or uncheck all the series with a shortcut for instance.
My user want to quickly hide or show all series.
I tried the code below with the visibility which works on the series but the check box in the legend is not updated.
checkAll = !checkAll;
foreach (FastLineSeries cs in this.lineChart.Series)
{
cs.Visibility = checkAll ? Visibility.Visible : Visibility.Hidden;
}
I want the same behavior as click on the check box of the legend.
Hi Rodolphe,
We have analyzed your requirements
and we would like to inform you that the check box in the legend is updated if
we set the IsSeriesVisible instead of Visibility property in chartseries. Please find
the sample in the following location.
Code Snippet[C#]:
checkAll = !checkAll;
foreach (FastLineSeries cs in this.lineChart.Series)
{
cs.IsSeriesVisible = checkAll ? true : false ;
}
Please
let us know if you have any queries.
Regards,
Sumathi
J
Hi Sumathi,
It is exactly what I was looking for.
Thanks
Rodolphe