I am adding tiles to a tile view grid via a background worker and finding that the tiles are not being added in the order I am expecting them to.
The first adds to the left:
The second adds to the right of the first:
The third adds to the right of the first, but left of the second:
I would like it to add directly to the last sequential spot if possible.
I am desiring that the order of the tiles appear initially in the order that I add them to the view control. The user should still be able to re-organize these tiles "after" I have added them, but I want all "added" tiles to appear at the end of the list.
How can I get this to happen either by adding them directly to the end or being able to programmatically sort them to the right locations.
Just to clarify, I would like tile 3 to be added to the right of 2 and then tile 4 to be added to the right of 3, etc. Multiple lines will shift the perspective, but I would still want them to be organized top left to bottom right.
Additionally, how can I determine the actual order if the user rearranges?
AKAshok Kumar Murugesan Syncfusion Team October 20, 2016 01:50 PM UTC
Thank you for contacting Syncfusion Support.
We have prepared a sample using TileViewControl to insert items at specific index. In the sample, we have inserted items at the first, second and last positions of the collection and you can download it from the following link:
When an item is added to the collection using Add method, new TileViewItem will be added at the end of the list. You can use Insert method to add items at specific index. Similarly, items can be rearranged by removing and inserting them at specific index. TileViewItems order is similar to the items order in ViewModel collection, so you can use it to determine actual order if the user rearranges.
Please let us know more details about your requirement if we have misunderstood your query.