Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How can i enable my tiles(Windows 8 Apps ) to enable drag and drop. I want my tiles can be dragged and dropped within a gridview. Is there a way I can enable it. I found a post (http://www.progware.org/Blog/post/Drag-and-Drop-in-WinJSUIListView-for-repositioning-items-in-Windows-Store-Apps.aspx[^]) with a demo prog, but it is not working. I am working in javascript and html5. Does WinJS allow us to do such thing
Posted
Updated 18-Feb-13 5:11am
v2

Hi,

Here is how this is done in XAML and C#:

http://blogs.msdn.com/b/going_metro/archive/2012/07/16/drag-and-drop-within-a-grouped-grid-view.aspx[^]

The key three properties to achieve the effect are these:

CanDragItems="True"

CanReorderItems="True"

AllowDrop="True".

The same properties should be available from JavaScript.



Thanks,
Frank


// Frank La Vigne / US Public Sector Developer Evangelist
// 30 To Launch Sign up at http://bitly.com/30ToLaunchWin8
// @tableteer / http://www.FranksWorld.com
 
Share this answer
 
Comments
anchitgautam 1-Feb-13 0:53am    
Hi Frank

These properties are not available in JavaScript and HTML 5. Even when working using C# and setting these properties to true , it doesn't enable me to drop and rearrange though it allows a tile to drag while working on a grid template.

More suggestions would be appreciated.

Thanks

[REMOVED]email[/REMOVED]
I am the writer of the link you are mentioning. I have tested again the demo program (downloaded it and run it) and it executes correctly. What is the issue?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900