IsInfiniteScrollingEnabled and navigation by SelectedIndex should handle wrapping animation correctly

6 posts, 0 answers
  1. John
    John avatar
    8 posts
    Member since:
    May 2019

    Posted 13 Jun 2019 Link to this post

    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?

  2. Yana
    Admin
    Yana avatar
    5013 posts

    Posted 17 Jun 2019 Link to this post

    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
  3. John
    John avatar
    8 posts
    Member since:
    May 2019

    Posted 17 Jun 2019 in reply to Yana Link to this post

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

  4. Yana
    Admin
    Yana avatar
    5013 posts

    Posted 18 Jun 2019 Link to this post

    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
  5. John
    John avatar
    8 posts
    Member since:
    May 2019

    Posted 18 Jun 2019 in reply to Yana Link to this post

    I'll try that. Thank you!
  6. John
    John avatar
    8 posts
    Member since:
    May 2019

    Posted 20 Jun 2019 Link to this post

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

    Thank you.

Back to Top