Animation when inserting/adding item to the RadListView

7 posts, 0 answers
  1. Sascha
    Sascha avatar
    13 posts
    Member since:
    Jan 2017

    Posted 26 Jan Link to this post

    Hello,

     

    i switched from default Xamarin.Froms ListView to the Telerik RadListView (currently only focusing on iOS). One thing that I can't figure out is how to add an animation when items are added to the list view. New items just appear without any animation.

     

    Any ideas? Thanks!

  2. Deyan
    Admin
    Deyan avatar
    2147 posts

    Posted 30 Jan Link to this post

    Hi Sascha,

    Thanks for writing and for you question.

    Here is more information about how animations are enabled on  ListView for Xamarin.iOS:

    http://docs.telerik.com/devtools/ios/listview/animations

    Take a look and let me know if you need further assistance.

    Regards,
    Deyan
    Telerik by Progress
    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. Sascha
    Sascha avatar
    13 posts
    Member since:
    Jan 2017

    Posted 30 Jan Link to this post

    Hi Deyan,

    thanks for your help. I played around with it a bit. Setting the ItemAppearAnimation gives a strange effect when inserting an item to all items in the list. I put the example on Github TelerikListViewPoc

    Can you please check! I also uploaded Video that shows the problem with the animation.

  4. Sascha
    Sascha avatar
    13 posts
    Member since:
    Jan 2017

    Posted 31 Jan Link to this post

    Here is a GIF version that shows the problem.
  5. Deyan
    Admin
    Deyan avatar
    2147 posts

    Posted 02 Feb Link to this post

    Hi Sascha,

    Thanks for writing.

    Can you please point me to the place in the code where you are inserting items? I cannot seem to be able to find it in the Xamarin.iOS implementation.

    Regards,
    Deyan
    Telerik by Progress
    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
  6. Sascha
    Sascha avatar
    13 posts
    Member since:
    Jan 2017

    Posted 02 Feb Link to this post

    Hi Deyan,

    yes, it is just here: https://github.com/esskar/TelerikListViewPoc/blob/master/TelerikListViewPoc/ViewModels/MainViewModel.cs#L29

    I add an item to the observable collection, everything else is done by the data binding.

  7. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1237 posts

    Posted 07 Feb Link to this post

    Hi Sascha,

    I will try to explain why the animations in iOS (native) and Xamarin.iOS differ. It turns out that the native iOS component has dedicated API for inserting, moving, deleting and reloading items with animation. However, when we implemented the Xamarin.iOS component we used different approach for doing these operations. Unfortunately, this alternative approach does not trigger the native animations.

    We logged an item in our feedback portal so that you can follow and give your vote for it. This item serves us to monitor the demand of this feature and to evaluate its impact more precisely. Gathering more customer votes can lead to rising the priority of this task.

    Regards,
    Pavel R. Pavlov
    Telerik by Progress
    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
Back to Top