Drag to a "new" Group + TilePosition

2 posts, 0 answers
  1. Jason
    Jason avatar
    21 posts
    Member since:
    Mar 2012

    Posted 29 Oct 2018 Link to this post

    I am attempting to mimic the Windows 10 behavior where dragging a tile to an "empty" area automatically creates a new group. Since "Group" is implemented as a "property path" in the RadTileList I am not seeing an obvious way to implement this functionality.

    Should I create a new ContentControl that has special "Drop" functionality that creates a new group? Or is there a better option using the TileList itself?

    On the same project I am attempting to "save" the position of Tiles across sessions, is there a "TilePosition" property that I am just not finding such that I can save the position of specific tiles or is the position of the tiles dictated by the order of the items in bound ObservableCollection?

    Cheers!

    Jason

  2. Dinko
    Admin
    Dinko avatar
    937 posts

    Posted 01 Nov 2018 Link to this post

    Hello Jason,

    The RadTileList control does not support such behavior out of the box. What you could try is to create a custom class which inherits TileListGroupPanel and implements custom logic which handles the cases when the dragged Tile is dropped on an empty space.

    Regarding your second question. To get or set the position of Tile in a group you can use the DisplayIndex property.

    Regards,
    Dinko
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top