scrollbar for chart

Thread is closed for posting
4 posts, 0 answers
  1. Sangeetha
    Sangeetha avatar
    28 posts
    Member since:
    Oct 2010

    Posted 19 Oct 2010 Link to this post


    If I use separate scroll bars for chart, then my UI does not look good since either the chart or the x axis labels are overlapped with the separate scrollbar, Instead can i use the radchart scroll bar itself?
    If i use the following I am not able to see the scrollbar on the chart.

    radChart1.VerticalScroll.Enabled =true;
    radChart1.HorizantalScroll.Enabled =true;
  2. Yavor
    Yavor avatar
    401 posts

    Posted 21 Oct 2010 Link to this post

    Hello Sangeetha,

    In order for the scrolling to work you have to add appropriate ZoomScrollSettings like this:

    ZoomScrollSettings zoomSettings = new ZoomScrollSettings();
    zoomSettings.MinZoomRange = 0.1;
    zoomSettings.RangeEnd = 0.3;
    zoomSettings.RangeStart = 0.2;
    zoomSettings.ScrollMode = ScrollMode.ScrollAndZoom;
    this.radChart.DefaultView.ChartArea.ZoomScrollSettingsX = zoomSettings;

    If you need only scrolling then you can just set the ScrollMode to ScrollOnly. You can find more information in our help system in this topic.

    Sincerely yours,
    Yavor Ivanov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Ales
    Ales avatar
    5 posts
    Member since:
    Dec 2011

    Posted 02 Dec 2011 Link to this post


    does it works for WinForms ?
    I havent find the keyword ....DefaultView...fort radChart component...!

  4. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 05 Dec 2011 Link to this post

    Hi Ales,

    Sorry for the confusion.

    RadChart for WinForms does not support zooming/scrolling -- the code snippet in our previous reply is relevant to RadChart for WPF and Silverlight.

    Best wishes,
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Back to Top