GridLineStyle and dashed / dotted / line

3 posts, 0 answers
  1. Courouble Damien
    Courouble Damien avatar
    54 posts
    Member since:
    Aug 2009

    Posted 04 Jan 2011 Link to this post

    Hi guys, 

    I'm trying to apply some visual effects on major / minor grid lines
    I need to do it code behind so basicly i create a style object that i add to AxisStyles.GridLineStyle 

    Working pretty much fine for Thickness, Color .. but i'm not able to create some dotted lines, dashed lines or even a combination of this ones

    ' Style object creation
     Dim tAxisYMajorLineStyle As New Style(GetType(Line))
     tAxisYMajorLineStyle.Setters.Add(New Setter(Line.StrokeThicknessProperty, MyThickness))
     tAxisYMajorLineStyle.Setters.Add(New Setter(Line.StrokeProperty, MyColor))
     
     ' Ive tried both combination for a dashedline
      tAxisYMajorLineStyle.Setters.Add(New Setter(Line.StrokeDashArrayProperty, "5, 2"))
       
     ' Or
     Dim tDoubleCollection As New DoubleCollection()
     tDoubleCollection.Add(5)
      tDoubleCollection.Add(2)
     
     tAxisYMajorLineStyle.Setters.Add(New Setter(Line.StrokeDashArrayProperty, tDoubleCollection ))
     
    ' Apply style
       _Chart.DefaultView.ChartArea.AxisY.AxisStyles.GridLineStyle = tAxisYMajorLineStyle

    Am i doing something wrong ? 
    Is there another way to do it ? 

    Thanks,

    Damien

  2. Courouble Damien
    Courouble Damien avatar
    54 posts
    Member since:
    Aug 2009

    Posted 07 Jan 2011 Link to this post

    Anyone ? 
  3. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 07 Jan 2011 Link to this post

    Hi Courouble,

    Unfortunately, I can confirm that there is a problem with the GridLine when StrokeDashArray is set in its style. Your Telerik points are updated. Thank you for bringing this to our attention. Our developers will investigate it in detail.

    You can check the status of this issue in our Public Issues Tracking system.

    All the best,
    Evgenia
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top