The reason for this behavior is in the way RadChart databinding works. You have two options:
- Create the series you need -- in this case you have to set their DataYColumn property with the name of the column/field you need to plot.
- Let the chart create the series for you - it will create series for every numeric column/field in the underlying datasource.
In this case, you have created the series, but their DataYColumn
property is not set. So, RadChart will clear them and it will create new ones. That is why the ShowLabels
setting is lost. You will need to either set the DataYColumn
for each series or remove them completely and wire DataBound
event. There you will be able to loop through the actual series in RadChart and hide their labels like this:
radChart.Series[i].Appearance.LabelAppearance.Visible = false;
Hope this helps.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items