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

3 posts, 1 answers
  1. Yaroslav
    Yaroslav avatar
    153 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-->
                    <Style TargetType="telerik:PanZoomBar">
                        <Setter Property="Visibility" Value="Collapsed"/>
                <!-- X-axis -->
                    <telerik:CategoricalAxis LabelInterval="4"/>
                <!-- Y-axis -->
                    <telerik:LinearAxis Minimum="-128" Maximum="127" MajorStep="8" />
                <!--Series of the chart-->
                <telerik:SplineSeries CategoryBinding="Item1" ValueBinding="Item2" ItemsSource="{Binding FirstSensorData}" Style="{StaticResource SplineSeriesStyle}"/>
                <!--Layout grid-->
                    <telerik:CartesianChartGrid MajorLinesVisibility="XY" StripLinesVisibility="XY" IsTabStop="False">
                            <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                            <SolidColorBrush Color="Transparent" />
                            <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                            <SolidColorBrush Color="Transparent" />
                <!--Panning and zooming---->
                    <telerik:ChartPanAndZoomBehavior DragMode="Pan" ZoomMode="Both" PanMode="Both"/>
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    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 Ivanov
    Martin Ivanov avatar
    1451 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.

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

    Posted 07 Dec 2016 in reply to Martin Ivanov 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