Why is CartesianChartGrid not displayed on computer with Windows 7 (with servicepack 1)?

3 posts, 1 answers
  1. Yaroslav
    Yaroslav avatar
    141 posts
    Member since:
    Jan 2016

    Posted 23 Nov 2016 Link to this post

    Hello. I developed WPF MVVM Prism 6 application. There is RadCartesianChart with CartesianChartGrid there. Please see XAML below:

    <telerik:RadTileView Grid.Row="1" Grid.Column="0" PreservePositionWhenMaximized="True" MinimizedColumnWidth="150">
        <!--Chart of signal-->
        <telerik:RadTileViewItem Header="First signal chart">
            <telerik:RadCartesianChart x:Name="chart1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" EmptyContent="{Binding FirstSensorChartEmptyContent}">
                <!--Turn scrollbars off-->
                <telerik:RadCartesianChart.Resources>
                    <Style TargetType="telerik:PanZoomBar">
                        <Setter Property="Visibility" Value="Collapsed"/>
                    </Style>
                </telerik:RadCartesianChart.Resources>
                <!-- X-axis -->
                <telerik:RadCartesianChart.HorizontalAxis>
                    <telerik:CategoricalAxis LabelInterval="4"/>
                </telerik:RadCartesianChart.HorizontalAxis>
                <!-- Y-axis -->
                <telerik:RadCartesianChart.VerticalAxis>
                    <telerik:LinearAxis Minimum="-128" Maximum="127" MajorStep="8" />
                </telerik:RadCartesianChart.VerticalAxis>
                <!--Series of the chart-->
                <telerik:SplineSeries CategoryBinding="Item1" ValueBinding="Item2" ItemsSource="{Binding FirstSensorData}" Style="{StaticResource SplineSeriesStyle}"/>
                <!--Layout grid-->
                <telerik:RadCartesianChart.Grid>
                    <telerik:CartesianChartGrid MajorLinesVisibility="XY" StripLinesVisibility="XY" IsTabStop="False">
                        <telerik:CartesianChartGrid.YStripeBrushes>
                            <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                            <SolidColorBrush Color="Transparent" />
                        </telerik:CartesianChartGrid.YStripeBrushes>
                        <telerik:CartesianChartGrid.XStripeBrushes>
                            <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                            <SolidColorBrush Color="Transparent" />
                        </telerik:CartesianChartGrid.XStripeBrushes>
                    </telerik:CartesianChartGrid>
                </telerik:RadCartesianChart.Grid>
                <!--Panning and zooming---->
                <telerik:RadCartesianChart.Behaviors>
                    <telerik:ChartPanAndZoomBehavior DragMode="Pan" ZoomMode="Both" PanMode="Both"/>
                </telerik:RadCartesianChart.Behaviors>
            </telerik:RadCartesianChart>
        </telerik:RadTileViewItem>
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    </telerik:RadTileView>

    As you can see in my application I use RadCartesianChart inside RadTileView. I display the layout of only one chart, but all eight of them. Each of them is in its own RadTileViewItem. The problem is that the one of my customers doesn't see layout grid on his computer. He sees: 1) X-axis and Y-axis, 2) All the risks and labels of individual segments on the X-axis and Y-axis, 3) The series (signal curve) but he doesn't see layout grid! He has Windows 7 OS with servicepack 1 on his computer. But the other customer who also install my application sees layout grid perfectly. This second customer also has a computer with Windows 7 OS with servicepack 1 but he has no problem with visualizing of charts.

  2. Answer
    Martin
    Admin
    Martin avatar
    1200 posts

    Posted 28 Nov 2016 Link to this post

    Hi Yaroslav,

    Curious behavior. The OS version should not impact the chart's behavior. The most common reason for missing components is the use of NoXaml dlls. So, if you use them along with the implicit styles theming mechanism, make sure that any styles that target Telerik controls are based on their default style. You can see this in the Using Implicit Styles help article. In your scenario, it is possible to be something else because the application behaves differently on the different machines, but you can take a look anyway.

    Additionally, you can check if the grid lines appear after resize of the chart. And test it also with the latest version of UI for WPF (there could be a fix that impacts also this behavior). If this doesn't help you can try to isolate the issue in a new project and send it over.

    Regards,
    Martin
    Telerik by Progress
    Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
  3. Yaroslav
    Yaroslav avatar
    141 posts
    Member since:
    Jan 2016

    Posted 07 Dec 2016 in reply to Martin Link to this post

    Hello, Martin. Hi reinstalled OS (Windows 7) and now the layout grid is displayed perfectly. So now is OK.
Back to Top