473,395 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

In DOJO DND, How do I copy (not move) a node between 2 sources

29
Hi!

So basically what I'm trying to do is overwrite onDropExternal handler for a dnd.Source object.

I tried the brutal way of using this.inserNodes but it moved the node from the original source even though the original source has copyOnly set to true.

So how do I copy this node nicely onExternalDrop

here is my thinking

Expand|Select|Wrap|Line Numbers
  1. tgtContainer1.onDropExternal = function(source,nodes,copy) {
  2.  
  3.    var nodeCount = nodes.length;
  4.  
  5.    //foreach node copy or move depending on copy state
  6.    for(i = 0; i < nodeCount; i++) {                    
  7.         if (!copy)
  8.            // Move the object
  9.  
  10.         }
  11.         else {
  12.             // Copy the object - perhaps by adding and deleting?
  13.         }
  14.     }
  15.     });
  16.  
Thank you in advance.

// Rythmic
Aug 16 '10 #1
0 1179

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tony | last post by:
hi. using visual studio.net , when i add form object either web form or window forms , i can not move them to the location on the web by draging and droping them. they move but once the mouse...
0
by: Max | last post by:
I'm having some problems using SqlDataReader in the Microsoft.ApplicationBlocks.Data.SqlHelper class. In some cases it seems that the cursor does not move, and I'm not sure what is causing this. ...
4
by: AndyG | last post by:
Hey everyone. I just reinstalled my VS.Net and now for some reason, when i am in design mode and i try to move a control, it does not move the control. It ends up moving the scrollbar up or down as...
2
by: roni | last post by:
im allocating an object that is a wrapper of unmanaged code. how can i pin that object in memory ,so the gc will not move it. the reason is some other data members of the object,are sent to...
0
by: K B | last post by:
Hi again, I have a treeview, I would like to select a node, then click on an up or down button and move the node accordingly, updating the xmlDocument each time. For example, if I select a 2nd...
0
by: codejunkie | last post by:
Hello, I have a C# program that displays related intellisence (list box) every time i type in the rich text editor of the form. Unfortunately, the intellisense window does not move with the main...
6
by: Tim Zych | last post by:
' Declare a new parameter object Dim param() As SqlParameter = New SqlParameter(0) {} ' Set this to null and make it an InputOutput parameter param(0) = New SqlParameter("@Something, DBNull.Value)...
1
by: rubenbcn | last post by:
Hi all. We are creating a web app that generates a playlist. So you have a list of songs in your left side and you drag and drop them to the right side and sort them. The thing is that we would...
1
by: radhamadhavi | last post by:
in vb.net the form windowstyle is maximimised it can move so i want not move in one place to another place what is this code
1
by: ojhamuke | last post by:
Hi, I want to create a java program which will copy or move files from windows machine to linux machine directory. I tried by socket connection. Connection is successful but I want to paste windows...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.