This is a migrated thread and some comments may be shown as answers.

Appearance is being ignored

1 Answer 57 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Top achievements
Rank 1
shovavnik asked on 11 Jul 2009, 01:14 PM
I'm using the RadChart from 2008 Q2 SP1.

Nothing I do to change the appearance in code causes the style information to change. I've tried with and without DataBind(), and I've tried changing the style informaiton in the designer as well as writing the code explicitly. It always reverts to the basic empty skin.

Here's an example:
var series = chart.Series[0]; 
var appearance = series.Appearance; 
appearance.PointMark.Dimensions.AutoSize = false
appearance.PointMark.Dimensions.Width = 2; 
appearance.PointMark.Dimensions.Height = 2; 
appearance.PointDimentions.AutoSize = false
appearance.PointDimentions.SetDimensions(2, 2); 
appearance.LabelAppearance.Visible = false
appearance.TextAppearance.Visible = false

Note that I'm using a Point chart.

Any ideas what I could be missing?

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 14 Jul 2009, 10:06 AM
Hello Noam,

By default there is a single ChartSeries in the Series collection, but it is being removed on data bind. New series are created instead. Please, try changing the appearance properties after calling DataBind().

Sincerely yours,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Chart (obsolete as of Q1 2013)
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question