﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - DragDrop (WebGrid to WebTreeview) using WebPaneManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DragDrop-WebGrid-to-WebTreeview-using-WebPaneManager/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>DragDrop (WebGrid to WebTreeview) using WebPaneManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DragDrop-WebGrid-to-WebTreeview-using-WebPaneManager/</link><pubDate>Fri, 28 Aug 2009 05:22:28 GMT</pubDate><dc:creator>james</dc:creator><category>WebGrid</category><category>WebDesktop</category><category>WebTreeView</category><category>DragDrop</category><description>&lt;p&gt;Okay, in this case, try to hook the drag query handler to WebDragDropExtender's &lt;b&gt;OnDragQuery&lt;/b&gt; instead. I think it'll be fired, although I'm not sure if you can get the "node" in WDDE's event level. However, if you don't need the details in the function handler and simply want to change the &lt;b&gt;Effect&lt;/b&gt;, I think that can be done.&lt;/p&gt;</description></item><item><title>DragDrop (WebGrid to WebTreeview) using WebPaneManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DragDrop-WebGrid-to-WebTreeview-using-WebPaneManager/</link><pubDate>Fri, 28 Aug 2009 02:45:16 GMT</pubDate><dc:creator>Michael</dc:creator><category>WebGrid</category><category>WebDesktop</category><category>WebTreeView</category><category>DragDrop</category><description>&lt;p&gt;I have tested DragDropEvents.aspx sample. But in my case, I drag from WebGrid and drop on WebTree. Maybe it doesn't work, because I use the WebPaneManager.&lt;/p&gt;
&lt;p&gt;In other thread (&lt;a href="http://www.intersoftpt.com/Community/WebGrid/Bind-2-WebGrids-to-Dataset/" target="_blank"&gt;Bind 2 WebGrids to Dataset&lt;/a&gt; -&amp;gt; second post from me), I have described my scenario. Please have a look.&lt;/p&gt;</description></item><item><title>DragDrop (WebGrid to WebTreeview) using WebPaneManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DragDrop-WebGrid-to-WebTreeview-using-WebPaneManager/</link><pubDate>Thu, 27 Aug 2009 22:18:48 GMT</pubDate><dc:creator>james</dc:creator><category>WebGrid</category><category>WebDesktop</category><category>WebTreeView</category><category>DragDrop</category><description>&lt;blockquote&gt;&lt;p&gt;It's not enough to change effect, because&amp;nbsp;I can also&amp;nbsp;add Clildnodes only!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; I'm not sure if I got you on this one. WebTreeView should let you drop on just any nodes (parent and child). Let me know if you have other scenarios.&lt;/p&gt;</description></item><item><title>DragDrop (WebGrid to WebTreeview) using WebPaneManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DragDrop-WebGrid-to-WebTreeview-using-WebPaneManager/</link><pubDate>Thu, 27 Aug 2009 22:16:23 GMT</pubDate><dc:creator>james</dc:creator><category>WebGrid</category><category>WebDesktop</category><category>WebTreeView</category><category>DragDrop</category><description>&lt;p&gt;Hi Michael,&lt;/p&gt;&lt;p&gt;Have you attached the function to the OnDragQuery client side event in TreeView? Eg, &amp;lt;ClientSideEvents OnDragQuery="Tree_OnDragQuery" /&amp;gt;.&lt;/p&gt;
&lt;p&gt;The events are fired properly. You can also check a basic sample that demonstrate all drag drop events in installed live sample. Open WebTreeView (C# Samples), then look for DragDropEvents.aspx sample.&lt;/p&gt;
&lt;p&gt;Let me know how it goes in your end.&lt;/p&gt;</description></item><item><title>DragDrop (WebGrid to WebTreeview) using WebPaneManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DragDrop-WebGrid-to-WebTreeview-using-WebPaneManager/</link><pubDate>Thu, 27 Aug 2009 11:53:42 GMT</pubDate><dc:creator>Michael</dc:creator><category>WebGrid</category><category>WebDesktop</category><category>WebTreeView</category><category>DragDrop</category><description>&lt;p&gt;Hi James&lt;/p&gt;
&lt;p&gt;Thanks for your answer!&lt;/p&gt;
&lt;p&gt;I have tested your code, but it doesn't works. &lt;img style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none" src="http://www.intersoftpt.com/WebResources/Images/Community/Editor/smiley10.gif" /&gt;  The OnDragQuery Event isn't fired.&lt;/p&gt;
&lt;p&gt;It's not enough to change effect, because I can also add Clildnodes only!&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item><item><title>DragDrop (WebGrid to WebTreeview) using WebPaneManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DragDrop-WebGrid-to-WebTreeview-using-WebPaneManager/</link><pubDate>Thu, 27 Aug 2009 10:12:05 GMT</pubDate><dc:creator>james</dc:creator><category>WebGrid</category><category>WebDesktop</category><category>WebTreeView</category><category>DragDrop</category><description>&lt;p&gt;Hi Michael,&lt;/p&gt;&lt;p&gt;Thanks for posting about such interesting scenario. Intersoft's drag and drop framework has a very solid architecture which enables better customizability and greater control over the drag and drop process.&lt;/p&gt;
&lt;p&gt;In your case, you can continue using &lt;b&gt;OnDragDrop&lt;/b&gt; event of WebTreeView since it gives you processed data such as &lt;i&gt;ItemObject&lt;/i&gt;. If your struggle is only about the Effect, then here's the good news. You can customize the &lt;i&gt;Effect&lt;/i&gt; to your liking by handling &lt;b&gt;OnDragQuery&lt;/b&gt; event of WebTreeView.&lt;/p&gt;
&lt;p&gt;Here's a snippet code:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;function Tree_OnDragQuery(id, dragContext, subObjectContext)
{
     var node = subObjectContext.ItemObject;
     // change effect to "copy"
     if (node.Text == "WebUI Studio")
          &lt;b&gt;dragContext.Effect = ISDragDropEffects.Copy&lt;/b&gt;;
}&lt;/pre&gt;
&lt;p&gt;In addition to "Effect", I think you can also customize the effect tooltip that is shown during drag, eg, dragContext.EffectText = "Copy item to WebUI Studio";&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;James.&lt;/p&gt;</description></item><item><title>DragDrop (WebGrid to WebTreeview) using WebPaneManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DragDrop-WebGrid-to-WebTreeview-using-WebPaneManager/</link><pubDate>Thu, 27 Aug 2009 04:50:27 GMT</pubDate><dc:creator>Michael</dc:creator><category>WebGrid</category><category>WebDesktop</category><category>WebTreeView</category><category>DragDrop</category><description>&lt;p&gt;I want drag Data from WebGrid and drop on unbound WebTreeView. WebGrid and WebTreeView are located in WebPane. Please see attached picture.&lt;/p&gt;
&lt;p&gt;Glenn told me few time ago, I have to use DragDropExtender &lt;em&gt;OnDragDrop&lt;/em&gt; event handler (not WebTreeView &lt;em&gt;onDragDrop&lt;/em&gt; event handler) when using WebPane.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;OnDragDrop&lt;/em&gt; event (DragDropExtender) has an argument "dropObject". I get the WebTreeview Object with &lt;em&gt;ISGetObject(dropObject.Owner.ControlID)&lt;/em&gt;. &lt;strong&gt;But how can I get the WebTreeViewNode Object?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have posted a similar request &lt;a href="http://www.intersoftpt.com/Community/WebGrid/WebGrid-with-WebDragDropExtender---How-can-i-find-out-Drop-Row/" target="_blank"&gt;WebGrid with WebDragDropExtender - How can i find out "Drop-Row"&lt;/a&gt; to find out on which row OnDragDrop Event is fired.&lt;/p&gt;
&lt;p&gt;OnDragDrop event (WebTreeView) has an argument "dropContext". Here I get WebTreeViewNode Object easy with &lt;em&gt;dropContext.ItemObject&lt;/em&gt;. I can use this event handler, if I don't define WebTreeView as DropControl in WebDragDropExtender. It works, but the Effect is automaticly set to "&lt;em&gt;Move"&lt;/em&gt;, if the cursor over a node (else NotAllowed). This means that I can add Childnodes only!&lt;/p&gt;
&lt;p&gt;Thanks for help!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>