listbox snapping

Thread is closed for posting
3 posts, 0 answers
  1. Sebastien
    Sebastien avatar
    2 posts
    Member since:
    Sep 2014

    Posted 05 Jan 2015 Link to this post

    We are currently using a RadDataBoundListBox and taking advantage of the header and footer. However we now have a new requirements which is to have the RadDataBoundListBox to its items. If it is a slow swipe the next available item should be displayed. If it is a fast swipe then the list should jump one item and display the second available item in the list.

    We understand that RadDataBoundListBox does not support snapping but that RadSlideView does. However the features of the RadSlideView control (as we understand them) does not allow us to implement items with different heights and they need to fill the screen in the direction that they scroll in. As in if we want to use the RadSlideView with snapping when scrolling up/down the item needs to be the same height as the screen. Which does not allow us to show the a bit of the following item, or does i?

    Can someone help us solve this?

    Many thanks

  2. Rosy Topchiyska
    Rosy Topchiyska avatar
    586 posts

    Posted 08 Jan 2015 Link to this post

    Hello Sebastien,

    Thank you for contacting us.

    You correctly understand how our controls work:
    • RadDataBoundListBox control uses continuous scrolling and no snapping is available out of the box. Also, there is no mechanism to distinguish fast from slow scrolling so that you can perform different actions. I have attached a very basic example that demonstrates how you can do some sort of snapping and it may give you some ideas.
    • RadSlideView control always displays a single item on the screen. You can check the AdjacentItemsPreviewMode property that determines the visibility of the two adjacent to the viewport items.

    I hope this somehow helps.

    Rosy Topchiyska

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Sebastien
    Sebastien avatar
    2 posts
    Member since:
    Sep 2014

    Posted 16 Jan 2015 in reply to Rosy Topchiyska Link to this post

    Thanks I'll take a look
Back to Top