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

IsInfiniteScrollingEnabled and navigation by SelectedIndex should handle wrapping animation correctly

5 Answers 39 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 13 Jun 2019, 11:36 AM

I need to know if it's possible to change animation direction for the wrap when navigating the SlideView by SelectedIndex, so IsInfinateScrolling works with SelectedIndex navigation.  

When navigating from the last element in the collection, back to the first, or from first element directly to the last by updating the Bound SelectedIndex property is there a way to reverse the animation?

When IsInfiniteScrollingEnabled="True" I believe that the animation should continue in the same direction even when you're wrapping from the last element to the first, or the first element to the last so you can have a seamless infinite navigation experience.  

 

(the --> and <-- below are animation direction)

Current:(IsInfiniteScrollingEnabled="True") 

SelectedIndex=0 

SelectedIndex=1 -->

SelectedIndex=2 -->

(Last item)SelectedIndex=3 -->

SelectedIndex=0 <--  (This animation is opposite of the last several)

 

Desired:(IsInfiniteScrollingEnabled="True")

SelectedIndex=0
SelectedIndex=1 -->
SelectedIndex=2 -->
(Last item)SelectedIndex=3 -->
SelectedIndex=0 --> (Same direction as last animation)

Is this currently possible in the SlideView Control?

5 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 17 Jun 2019, 01:53 PM
Hi John,

I would need more details on the desired result as I've tested the infinite scrolling feature of the SlideView and the animation direction is not changed when the last item is reached.  I have attached a short video to show you how the control behaves on my side, could you please download and review it? 

Can you elaborate more and/or send an image on the exact setup you have?

I am looking forward to your reply.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
John
Top achievements
Rank 1
answered on 17 Jun 2019, 09:18 PM

I can elaborate more.  I need to be able to navigate using a bound SelectedIndex from code, and have infinite scrolling.  Is this possible?

0
Yana
Telerik team
answered on 18 Jun 2019, 02:26 PM
Hello John,

I am afraid that when you change the slides through SelectedIndex, SlideView does not have the information that the last slide is reached and cannot use the reverse animation as in the case with the gestures or with the arrows.

If currently the slideview shows the last slide, and you're trying to call SelectedIndex++ ( set index outside of the range), that value will be coerced and the control will navigate to the first slide with animation in the same direction. I am not sure about the exact implementation you have, however, you could try to use that as a workaround to achieve infinite scrolling.

Let me know if I can assist with anything else.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
John
Top achievements
Rank 1
answered on 18 Jun 2019, 02:45 PM
I'll try that. Thank you!
0
John
Top achievements
Rank 1
answered on 20 Jun 2019, 01:43 PM

Incrementing the SelectedIndex instead of manually setting it fixed my issue.   

Thank you.

Tags
SlideView
Asked by
John
Top achievements
Rank 1
Answers by
Yana
Telerik team
John
Top achievements
Rank 1
Share this question
or