Appearance is being ignored

Thread is closed for posting
2 posts, 0 answers
  1. shovavnik
    shovavnik avatar
    39 posts
    Member since:
    Aug 2007

    Posted 11 Jul 2009 Link to this post

    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:
    1 var series = chart.Series[0]; 
    2 var appearance = series.Appearance; 
    3 appearance.PointMark.Dimensions.AutoSize = false
    4 appearance.PointMark.Dimensions.Width = 2; 
    5 appearance.PointMark.Dimensions.Height = 2; 
    6 appearance.PointDimentions.AutoSize = false
    7 appearance.PointDimentions.SetDimensions(2, 2); 
    8 appearance.LabelAppearance.Visible = false
    9 appearance.TextAppearance.Visible = false

    Note that I'm using a Point chart.

    Any ideas what I could be missing?

  2. Dwight
    Dwight avatar
    475 posts

    Posted 14 Jul 2009 Link to this post

    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.
Back to Top