How to control the switching positions by drag and drop

4 posts, 0 answers
  1. Tamir
    Tamir avatar
    11 posts
    Member since:
    Dec 2011

    Posted 29 Jun 2012 Link to this post

    Hello,
    I want to change the way TileViewItems change their positions in the I want to change the way TileViewItems change their positions in the TileView so that when I drag an item to the left of another one it will change his position to the left of the dropped item and to the right accordingly without any other changes to the other items (I believe the way to do that is to  pin all the others).

    How would you recommend me to do so?

    Thank you anyway!

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 03 Jul 2012 Link to this post

    Hello Tamir,

     Could you please examine this demo and its source code? Is this what you are looking for ? If not, could you please elaborate more on your exact requirement, any snapshots will be highly appreciated? Thank you in advance.

    All the best,
    Petar Mladenov
    the Telerik team

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

  3. UI for WPF is Visual Studio 2017 Ready
  4. Tamir
    Tamir avatar
    11 posts
    Member since:
    Dec 2011

    Posted 07 Jul 2012 Link to this post

    Thank you Petar,
    This is not exactly what I need. For example when In your example I drag Item 2 to the left of Item 9 I need it to reorder like that:
    Item 1 (Pinned), Item 3, Item 4,
    Item 5 (Pinned), Item 6, Item 7,
    Item 8, Item 2, Item 9,
    Item 10 (Pinned)

    So that Item 2 is placed to the left of the ninth item and the others filling the blanks (moving one step to the left).
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 11 Jul 2012 Link to this post

    Hello Tamir,

     We prepared a sample for you. Please take a look at it and let us know if it satisfies you.

    Greetings,
    Petar Mladenov
    the Telerik team

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

Back to Top