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

Set CustomGridLines ZIndex

2 Answers 89 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Hugo
Top achievements
Rank 1
Hugo asked on 23 Feb 2012, 07:26 PM
Hi,
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 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 27 Feb 2012, 05:22 PM
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,
Sia
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ye
Top achievements
Rank 1
answered on 22 Aug 2013, 08:54 AM
<telerik:DragZoomLayerControl x:Name="PART_DragZoomLayer" Style="{TemplateBinding DragZoomLayerControlStyle}">
    <Grid>
        <telerik:AnnotationLayer Canvas.ZIndex="100" x:Name="PART_AnnotationLayer" ItemsSource="{TemplateBinding Annotations}" />
        <ItemsPresenter />
    </Grid>
</telerik:DragZoomLayerControl>


Tags
Chart
Asked by
Hugo
Top achievements
Rank 1
Answers by
Sia
Telerik team
Ye
Top achievements
Rank 1
Share this question
or