﻿<?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 - DragDrop</title><link>http://www.intersoftsolutions.com/Community/Tags/DragDrop/</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>Drag Drog Issue / Question</title><link>http://www.intersoftsolutions.com/Community/Tags/DragDrop/</link><pubDate>Thu, 29 Sep 2011 13:42:01 GMT</pubDate><dc:creator>Syllus</dc:creator><category>DragDrop</category><category>DataTemplate</category><category>HierarchicalDataTemplate</category><category>DragDropBehavior</category><description>&lt;p /&gt;
&lt;p&gt;I am having a slight issue with DataTemplates and the &amp;lt;Intersoft:DragDropBehavior/&amp;gt; behavior.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have 2 collections in 2 different tabitems of a tab control.  &lt;/p&gt;
&lt;p&gt;The first collection is a list of text labels that the user should be able to drag onto the drawing surface.  For this, I have used a UXListBox Bound to a collection of labels.  My ItemTemplate for the UXListBox is as follows:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;        &amp;lt;DataTemplate x:Key="TextLibTemplate"&amp;gt;
            &amp;lt;Border&amp;gt;
                &amp;lt;StackPanel Orientation="Horizontal" &amp;gt;
                    &amp;lt;TextBlock Text="{Binding Text}" FontSize="14" Tag="TextLib"&amp;gt;
                        &amp;lt;i:Interaction.Behaviors&amp;gt;
                            &amp;lt;Intersoft:DragDropBehavior DragDropScope="Global" /&amp;gt;
                        &amp;lt;/i:Interaction.Behaviors&amp;gt;
                    &amp;lt;/TextBlock&amp;gt;
                &amp;lt;/StackPanel&amp;gt;
            &amp;lt;/Border&amp;gt;
        &amp;lt;/DataTemplate&amp;gt;&lt;/pre&gt;
&lt;p&gt; The DragDrop functionality works perfectly for this.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;However my 2nd list is a Hierarchical list of symbols that the user can drag onto the sketch surface, and for this I have used a UXTreeView control.  I am using an &amp;lt;Intersoft:HierarchicalDataTemplate/&amp;gt; for the ItemTemplate on this UXTreeView.  The HierarchicalDataTemplate is as follows:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;        &amp;lt;Intersoft:HierarchicalDataTemplate x:Key="SymbolLibTemplate" ItemsSource="{Binding Symbols}"&amp;gt;
            &amp;lt;Border&amp;gt;
                &amp;lt;StackPanel Orientation="Horizontal" &amp;gt;
                    &amp;lt;TextBlock Text="{Binding Name}" FontSize="14" Foreground="Blue" /&amp;gt;
                    &amp;lt;i:Interaction.Behaviors&amp;gt;
                        &amp;lt;Intersoft:DragDropBehavior IsDragable="False" /&amp;gt;
                    &amp;lt;/i:Interaction.Behaviors&amp;gt;
                &amp;lt;/StackPanel&amp;gt;
            &amp;lt;/Border&amp;gt;
            &amp;lt;Intersoft:HierarchicalDataTemplate.ItemTemplate&amp;gt;
                &amp;lt;Intersoft:HierarchicalDataTemplate&amp;gt;
                    &amp;lt;Border&amp;gt;
                        &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
                            &amp;lt;Image Width="24" Height="24" Source="Assets/Images/icons/Symbols.png" /&amp;gt;
                            &amp;lt;TextBlock Text="{Binding Name}" FontSize="14" Tag="SymbolLib" /&amp;gt;
                            &amp;lt;i:Interaction.Behaviors&amp;gt;
                                &amp;lt;Intersoft:DragDropBehavior IsDragable="True" DragDropScope="Global" /&amp;gt;
                            &amp;lt;/i:Interaction.Behaviors&amp;gt;
                        &amp;lt;/StackPanel&amp;gt;
                    &amp;lt;/Border&amp;gt;
                &amp;lt;/Intersoft:HierarchicalDataTemplate&amp;gt;
            &amp;lt;/Intersoft:HierarchicalDataTemplate.ItemTemplate&amp;gt;
        &amp;lt;/Intersoft:HierarchicalDataTemplate&amp;gt;&lt;/pre&gt;
&lt;p&gt; The Hierarchial list groups and list items show up in the UXTreeView control perfectly, however the DragDrop behavior has no effect here and does not work.&lt;/p&gt;
&lt;p&gt;I have tried this in a very simplified manner as well using a HierarchicalDataTemplate like:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;        &amp;lt;Intersoft:HierarchicalDataTemplate x:Key="SymbolLibTemplate2"&amp;gt;
            &amp;lt;Border&amp;gt;
                &amp;lt;StackPanel Orientation="Horizontal" &amp;gt;
                    &amp;lt;TextBlock Text="{Binding Name}" FontSize="14" Tag="SymbolLib"&amp;gt;
                        &amp;lt;i:Interaction.Behaviors&amp;gt;
                            &amp;lt;Intersoft:DragDropBehavior DragDropScope="Global" /&amp;gt;
                        &amp;lt;/i:Interaction.Behaviors&amp;gt;
                    &amp;lt;/TextBlock&amp;gt;
                &amp;lt;/StackPanel&amp;gt;
            &amp;lt;/Border&amp;gt;
        &amp;lt;/Intersoft:HierarchicalDataTemplate&amp;gt;&lt;/pre&gt;
&lt;p&gt; to ensure that the additional complexity of the Hierarchical DataTemplate was not causing a problem.&lt;/p&gt;
&lt;p&gt;The &amp;lt;Intersoft:DragDropBehavior/&amp;gt; just flat out, does not appear to work with the &amp;lt;Intersoft:HierarchicalDataTemplate/&amp;gt;.  Which is preventing the DragDrop behavior from working at all with the UXTreeView.&lt;/p&gt;
&lt;p&gt;Can you see anything that I am doing wrong here that may explain why I am not getting any kind of DragDrop behavior when i use the &amp;lt;Intersoft:HierarchicalDataTemplate/&amp;gt; as apposed to a regular &amp;lt;DataTemplat/&amp;gt;?&lt;/p&gt;
&lt;p&gt;Just as an FYI, here is the main sketch surface of the application where both the text label adn symbol items are dropped.  Again the text labels using a UXListBox and a normal &amp;lt;DataTemplate/&amp;gt; work perfectly, however the UXTreeView using a &amp;lt;Intersoft:HierarchicalDataTemplate/&amp;gt; does not work at all.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;          &amp;lt;Intersoft:UXFrame x:Name="SketchFrame" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Content="{Binding SketchPad}" MouseEnter="SketchFrame_MouseEnter" Cursor="None"&amp;gt;
                    &amp;lt;i:Interaction.Behaviors&amp;gt;
                        &amp;lt;Intersoft:DropTargetBehavior AllowDropItem="True" DropBehavior="Custom" Drop="SketchFrame_Drop" /&amp;gt;
                    &amp;lt;/i:Interaction.Behaviors&amp;gt;
          &amp;lt;/Intersoft:UXFrame&amp;gt;&lt;/pre&gt;
&lt;p&gt; Thank you in advance for any insight you may be able to provide that will help me get this working with the UXTreeView.&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item><item><title>Client side binding, hierarchy grids and drag/drop</title><link>http://www.intersoftsolutions.com/Community/Tags/DragDrop/</link><pubDate>Mon, 25 Oct 2010 12:37:00 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid</category><category>DragDrop</category><category>hierarchy grids</category><description>&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;I moved my code completely to the great
speed client side binding using Webservice, and really like the speed on that
feature, and all my code now is client side, almost 0 server side code&lt;span style=""&gt;&amp;nbsp; &lt;/span&gt;now.&lt;/span&gt;

&lt;p class="MsoNormal"&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;But I still
struggling to make some of the regular features in the WebGrid and other
controls on Intersoft to work properly with that, and I really need you
help.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;So, feature
no one, is the hierarchy grids is it supported with the client side
bindng/webserive? If yes, can you please provide an example?&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Second, is
the drag/drop also can work with the same grid-client-side-bind-webservice? Also
if yes, and if it make scenes can you send an example as well.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;My last
question, is that the best approach to move everything clientside instead of
the client/server approach?&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Thanks for
all your support guys.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Maged
Mikaeel&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Technical
Architect/Development Manager&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;CompuArt
Technology&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>DragDrop (WebGrid to WebTreeview) using WebPaneManager</title><link>http://www.intersoftsolutions.com/Community/Tags/DragDrop/</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>