Hi,in a scenario as Your 'Multi Tree Sample' (http://samples.infragistics.com/aspnet/Samples/WebDataTree/Organization/MultiTree/Default.aspx?cn=data-tree&sid=8b2c9419-adf3-4b6f-9b33-97f28ccd745d)it should work that if I drag from right-side and drop on left-side the node dropped on the left tree would be present only in the new position and not both in old and new.How can I achieve this?
WhiteSnake - Trouble has been dragged from WebDataTree2 to WebDataTree1/My Documents.
On WebDataTree1 it is shown in MyDocuments and also in Music/WhiteSnake.
Thank You
Hello Costanzo,
Thank you for posting in Infragistics Community.
If you set this, how the control behaves ?
Please check the docs here
Best regards,
You can try it yourself (being your sample), nothing changes. The problem arises when I drag from right tree and drop into left tree. DragDropMode='Move' removes the node from the right tree not from the left (Move – When a node is dropped, it is essentially removed from its original location and placed into the new destination target.).
Please let me know if and how this can be achieved.
Hi Constnzo,
Could you check this post please:
http://forums.infragistics.com/forums/p/60114/305204.aspx#
Best,
Hi,
Any luck with the control?
Please let me know if you need of help further.
It seems not to be client-side as I was asking.
Hello Constanzo,
In this sample you can experience the following scenario: Drag a node from the left to the right tree. In result of that action the the node droped in the right tree will no longer exists in the left Tree. If you refresh the browser the tree will resume its state because the changes are not saved in the datasource.
Hope this helps
If I play with this long enough in my version locally when I "Move" a node from left to right, I can reproduce
Microsoft JScript runtime error: Unable to get value of the property '0': object is null or undefined ( shown at the bolded line below)
I believe it is when you move say item #5 and then move ANY item ABOVE where that was (like item #3). It is like "the moved" elements are still being referenced by their index offset.
Is this a bug in set_value? It should at least check for null before that array reference.
set_value:function(id, val, address) { var index = id[0]; var defaultVal = id[1]; if(typeof(val) == "boolean") val = (val)?1:0; var item = this._items[address][0][index] if(item == null) item = defaultVal; if(!$util.compare(item, val)) this._transactionList.add_transaction(address, val, index); else this._transactionList.remove_transaction(address, index); },