Problem with RadChart scroll and zoom

2 posts, 1 answers
  1. Alberto
    Alberto avatar
    26 posts
    Member since:
    Nov 2012

    Posted 25 Sep 2013 Link to this post

    Hi,

    I have a chart like the one in the image,the code is the next:

    <telerik:RadChart Name="RadChartDemo" Grid.ColumnSpan="3" Content="" Margin="10" Grid.Row="2" BorderThickness="0">
               <telerik:RadChart.DefaultView>
                   <telerik:ChartDefaultView>
                       <telerik:ChartDefaultView.ChartArea>
                           <telerik:ChartArea>
                               <telerik:ChartArea.ZoomScrollSettingsY>
                                   <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom"/>
                               </telerik:ChartArea.ZoomScrollSettingsY>
                               <telerik:ChartArea.ZoomScrollSettingsX>
                                   <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom"/>
                               </telerik:ChartArea.ZoomScrollSettingsX>
                           </telerik:ChartArea>
                       </telerik:ChartDefaultView.ChartArea>
                       <telerik:ChartDefaultView.ChartTitle>
                           <telerik:ChartTitle Content="Tons Per Day" HorizontalAlignment="Center"/>
                       </telerik:ChartDefaultView.ChartTitle>
                   </telerik:ChartDefaultView>
               </telerik:RadChart.DefaultView>
           </telerik:RadChart>

    And I create the series using SeriesMapping and ItemMapping. When I run the application I can see both scroll bars but it seems to be disable, I can't scroll nor zoom the chart.

    Do I have something missing?

    Regards,

    Alberto
  2. Answer
    Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 01 Oct 2013 Link to this post

    Hi Alberto,

    The problem is that you have set the Content property of the control to an empty string and an empty TextBlock is displayed over the control, preventing you from performing any mouse interaction. By removing the Content="" attribute from the XAML declaration, you can solve your problem.
     
    Regards,
    Petar Kirov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top