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

Add and remove item: hoc to get an effet ?

1 Answer 28 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Jean Ressouche
Top achievements
Rank 1
Jean Ressouche asked on 11 Aug 2011, 07:55 AM
Dear telerik team,

 I try to find how to get an effect when a new item is added to the items list, and when an item is removed. Currently, if I remove an item, the UI is indeed refreshed, but without the "repositionning" effect, visually that is quite strange...

When I add an item that's the same (no visual effect).

Second question, how to change the position of one item, for example from position 1 to position 5, but avoiding that the item number 5 goes in position 1 ? (currently the changeposition() doesnt move the item but exchange position with another item isn't it?)

Note that I use an object including the position variable and the binding to affect the position in the tileview.

<telerik:ContainerBindingCollection x:Key="ContainerBindings">
    <telerik:ContainerBinding Binding="{Binding Position, Mode=TwoWay, Converter={StaticResource PositionConverter}}" PropertyName="Position" />
</telerik:ContainerBindingCollection>


 Thanks, not easy to found by myself !

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 16 Aug 2011, 05:35 PM
Hi Jean Ressouche,
Thank you for the feedback. At the moment the RadTileView doesn't support animations on items changed so you can't turn them on. I've created a feature request for this in our PITS under the name "TileView: Add animations for items collection change (add/remove)" and it will be ready for tracking and voting tomorrow the latest.
Unfortunately the second behavior that you describe is also not available at the moment, but there's already a feature request for it and you can track it here. There are two possible workarounds for this problem at the moment - you can try to remove the item from the items collection and then insert it back on the desired position or you can try to move all items between the start and the end positions.
For further references could you please examine the attached project and if you have more questions feel free to ask.

Regards,
Zarko
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
TileView
Asked by
Jean Ressouche
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or