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

listbox snapping

2 Answers 62 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sebastien
Top achievements
Rank 1
Sebastien asked on 05 Jan 2015, 10:50 AM
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
Seb

2 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 08 Jan 2015, 10:36 AM
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.

Regards,
Rosy Topchiyska
Telerik
 

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.

 
0
Sebastien
Top achievements
Rank 1
answered on 16 Jan 2015, 09:05 AM
Thanks I'll take a look
Tags
SlideView
Asked by
Sebastien
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Sebastien
Top achievements
Rank 1
Share this question
or