Add and remove item: hoc to get an effet ?

2 posts, 0 answers
  1. Jean Ressouche
    Jean Ressouche avatar
    83 posts
    Member since:
    Aug 2012

    Posted 11 Aug 2011 Link to this post

    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" />

     Thanks, not easy to found by myself !
  2. Zarko
    Zarko avatar
    755 posts

    Posted 16 Aug 2011 Link to this post

    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.

    the Telerik team

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

Back to Top