This is a migrated thread and some comments may be shown as answers.

scrollbar for chart

3 Answers 133 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sangeetha
Top achievements
Rank 1
Sangeetha asked on 19 Oct 2010, 06:09 AM
Hi

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.VerticalScroll.Visible=true;
radChart1.HorizantalScroll.Enabled =true;
radChart1.HorizantalScroll.Visible=true;

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 21 Oct 2010, 12:53 PM
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
0
Ales
Top achievements
Rank 1
answered on 02 Dec 2011, 04:00 PM
Hi,

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

mfg
0
Giuseppe
Telerik team
answered on 05 Dec 2011, 03:38 PM
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,
Giuseppe
the Telerik team

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

Tags
Chart (obsolete as of Q1 2013)
Asked by
Sangeetha
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Ales
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or