Multiple Items in View Simultaneously

4 posts, 0 answers
  1. Robert
    Robert avatar
    23 posts
    Member since:
    Feb 2009

    Posted 29 Jan 2010 Link to this post

    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.
  2. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 03 Feb 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Robert
    Robert avatar
    23 posts
    Member since:
    Feb 2009

    Posted 04 Feb 2010 Link to this post

    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.
  5. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 09 Feb 2010 Link to this post

    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.
Back to Top