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

Multiple Items in View Simultaneously

3 Answers 98 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 29 Jan 2010, 10:13 PM
I'm not exactly sure which control to use, but I want to be able to display a long list of items with X items viewable simultaneously.

In other words, I want to show let's say 5 items out of 100, and allow the user to scroll left or right through these items to find the one they want.

I'm not sure if I need to use the RadRotator or the RadCarousel.

For an example (web based, but I need WinForms), check out the "Customers Who Bought This Item Also Bought" section of any Amazon.com product page.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 03 Feb 2010, 04:58 PM
Hi Robert,

Thank you for the question.

The best solution for you would be to use our RadScrollViewer element. This is an important part of Telerik Presentation Framework since it allows you to easily achieve scrolling behavior just by giving a number of items. This approach is demonstrated in the sample project attached to my message. Feel free to modify this project according to your custom requirements.

I hope this helps. If you have additional questions, feel free to contact me.

Sincerely yours,
Nikolay
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Robert
Top achievements
Rank 1
answered on 04 Feb 2010, 04:30 PM
Thanks for the reply.

This is basically exactly what I want. Your code wouldn't compile with Q1 2009 SP1. I modified it where I could, but I can't find a replacement for the following line:

scrollViewer.ScrollLayoutPanel.ScrollWith(-104, 0);

The RadScrollViewer doesn't have a ScrollLayoutPanel property, nor does it have any method that seems to allow me to scroll by a certain amount.
0
Nikolay
Telerik team
answered on 09 Feb 2010, 11:50 AM
Hello Robert,

Indeed, the RadScrollLayoutPanel contained in RadScrollViewer is not exposed as a property in Q1 2009 SP1. However, you can still access it by getting it as a child of the RadScrollViewer:
((RadScrollLayoutPanel)scrollViewer.Children[2]).ScrollWith(-104, 0);

Should you need additional assistance, feel free to contact me.

Sincerely yours,
Nikolay
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Rotator
Asked by
Robert
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Robert
Top achievements
Rank 1
Share this question
or