Set CustomGridLines ZIndex

3 posts, 0 answers
  1. Hugo
    Hugo avatar
    3 posts
    Member since:
    Feb 2012

    Posted 23 Feb 2012 Link to this post

    Is there a way of setting the ZIndex of a CustomGridLine?
    I have a BarSeries with two CustomGridLines and I want the GridLines to be over the bar.
    The way it is now is that the bar is over the GridLines.

    See attached image.

    Thanks in advance.
  2. Sia
    Sia avatar
    692 posts

    Posted 27 Feb 2012 Link to this post

    Hello Hugo,

    In order to get the CustomGridLines over the series you need to set a custom style to your chart area. The Annotation Layer needs to be added after the Item Presenter in the DragZoomLayerControl. More information about similar approach can be found in the following help topic, p.1. You need also to set IsHitTestVisible= false to the annotation layer.

    Please try this and let us know how it works on your end.

    All the best,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Ye
    Ye avatar
    1 posts
    Member since:
    Aug 2013

    Posted 22 Aug 2013 Link to this post

    <telerik:DragZoomLayerControl x:Name="PART_DragZoomLayer" Style="{TemplateBinding DragZoomLayerControlStyle}">
            <telerik:AnnotationLayer Canvas.ZIndex="100" x:Name="PART_AnnotationLayer" ItemsSource="{TemplateBinding Annotations}" />
            <ItemsPresenter />

Back to Top