Answered by:
ASP.NET 3.5 web parts - drag and drop in IE9, cross-browser support issue

Question
-
Hi, I have a project that has been using ASP.NET web parts for years. But with IE9 drag and drop doesn't work correctly with Compatibility View on. To make sure I didn't have legacy references, I created a new, very simple project in VS2010SP1 targetting .net 3.5.
If Compatibility View isn't turned on, the see-through web part image that pops up during the drag appears at the top of the screen (especially problemtatic if that is where you want to drop the part!). It works OK with it on though. Also, drag and drop doesn't work in Firefox or Chrome. I can see from googling all over the place that these issues have been fixed since an early release of Atlas(!) but still can't get them to work! What am I doing wrong??
Flash video of the problem : http://integral-soft.com/webparts.html (please turn down volume - Idk what happened when recording lol)
Project zip: http://integral-soft.com/WebApplication1.zip
TIA!
John O
John O
Thursday, February 16, 2012 7:01 PM
Answers
-
Drag and Drop is not supported in SharePoint as well. Take a look at this previous forum post:
http://social.msdn.microsoft.com/Forums/da-DK/sharepoint2010general/thread/5be151bc-3a5c-401a-9378-501c2e8e2abbYou could implement jQuery drag and drop. Take a look at this blog post:
http://weblogs.asp.net/uruit/archive/2009/08/19/extending-asp-net-webparts-cross-browser-drag-and-drop-functionality-using-jquery.aspx- Marked as answer by Shimin Huang Friday, February 24, 2012 6:06 AM
Thursday, February 16, 2012 11:25 PM
All replies
-
Drag and Drop is not supported in SharePoint as well. Take a look at this previous forum post:
http://social.msdn.microsoft.com/Forums/da-DK/sharepoint2010general/thread/5be151bc-3a5c-401a-9378-501c2e8e2abbYou could implement jQuery drag and drop. Take a look at this blog post:
http://weblogs.asp.net/uruit/archive/2009/08/19/extending-asp-net-webparts-cross-browser-drag-and-drop-functionality-using-jquery.aspx- Marked as answer by Shimin Huang Friday, February 24, 2012 6:06 AM
Thursday, February 16, 2012 11:25 PM -
OK - that's fine - so it just went away quietly, eh?
I can implement my own logic for moving parts. Is there anyway to turn off the behavior in Edit mode? I don't see an obvious way.
Thanks!
Friday, February 17, 2012 12:27 AM -
Oh - just figured out that I can set WebPartManager.EnableClientScript = False - but still wondering what other effects this will have.
Thanks again.
Friday, February 17, 2012 12:32 AM -
How Did u fixed it, Kinly give me the solution for that :-)Thursday, December 6, 2012 6:03 AM