Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Rotator > Multiple Items in View Simultaneously

Not answered Multiple Items in View Simultaneously

Feed from this thread
  • Robert avatar

    Posted on Jan 29, 2010 (permalink)

    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.

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on Feb 3, 2010 (permalink)

    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.

    Reply

  • Robert avatar

    Posted on Feb 4, 2010 (permalink)

    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.

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on Feb 9, 2010 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Rotator > Multiple Items in View Simultaneously
Related resources for "Multiple Items in View Simultaneously"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]