Scrollbars in RadChart

2 posts, 0 answers
  1. Sunil
    Sunil avatar
    1 posts
    Member since:
    Feb 2013

    Posted 28 Feb 2013 Link to this post

    Hi there,

     I'm having trouble with enabling Scrollbars for Radcharts for Silverlight.
    My Telerik.Windows.Controls.Charting verson is 2011.3.1116.1040

    In xaml, i have  :
    <telerik:RadChart x:Name="radChartSurv" Style="{StaticResource chartStyle}" Tag="LiquidRateVsIPRPressureCurve" BorderThickness="1" Grid.Column="3" Grid.Row="1"/>


    And in xaml.cs Codebehind :
    radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsX.MinZoomRange = 0.1;
    radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsX.RangeEnd = 1.0;
    radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsX.RangeStart = 0.0;
    radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode = ScrollMode.ScrollAndZoom;
    radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsY.MinZoomRange = 0.1;
    radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsY.RangeEnd = 1.0;
    radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsY.RangeStart = 0.0;
    radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsY.ScrollMode = ScrollMode.ScrollAndZoom;

    I even tried ScrollMode.ScrollOnly... but all failed... Please let me know the solution... I can not scroll, when i zoom into my chart.

    Thank You,

    Sunil
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 05 Mar 2013 Link to this post

    Hi Sunil,

    I created a test project, based on your code, using the version of the binaries you are indicating (2011.3.1116.1040), however I could not reproduce the problem. When dragging the slider handles the RadChart successfully zooms in and out and when the dragging the whole slider, the visible area is scrolled. I have attached my test project for reference.

    Additionally, you may be interested to review our newest charting component - RadCartesianChart (part of RadChartView). The RadChartView addresses some of the limitations and deficiencies that we have identified in the RadChart implementation over the years. It is easier to set up and customize, and has vastly improved performance, especially when zooming and scrolling.
    You can check the online (Silverlight) demos on this link.

    Kind regards,
    Petar Kirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top