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

Animation when inserting/adding item to the RadListView

6 Answers 164 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Sascha
Top achievements
Rank 1
Sascha asked on 26 Jan 2017, 08:53 PM

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!

6 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 30 Jan 2017, 02:18 PM
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
0
Sascha
Top achievements
Rank 1
answered on 30 Jan 2017, 08:54 PM

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.

0
Sascha
Top achievements
Rank 1
answered on 31 Jan 2017, 08:21 AM
Here is a GIF version that shows the problem.
0
Deyan
Telerik team
answered on 02 Feb 2017, 09:15 AM
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
0
Sascha
Top achievements
Rank 1
answered on 02 Feb 2017, 09:56 AM

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.

0
Pavel R. Pavlov
Telerik team
answered on 07 Feb 2017, 07:57 AM
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
Tags
ListView
Asked by
Sascha
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Sascha
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or