The console.log indicates (0 0), it should be (0 1) or (1 0)...
1 Answer, 1 is accepted
answered on 09 Mar 2021, 02:43 PM
Thank you for the code snippet.
The indexes (the new and the previous one) of a certain tile remain the same when it is dragged from its position, but it is not dropped on another one. For example, a tile's index is 0 and it is attempted to be moved on position 2 (index = 1), instead, it is moved back to its initial position (index = 0). In this case, the tile's old index is 0 and the new index is again 0 since its position is not changed.
Also, this happens when the places of the two tiles, are not swapped visually, before the dropping of the tile on its new position. The required steps to reorder the tiles are:
Drag the tile to the desired position;
The tile is visually outlined over its new position;
Drop the tile over the desired position.
Let me know if you have any other queries and I would be happy to assist you.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.