I have the tree setup with 'drag and drop' and 'multiple select' enabled and it functions as expected except for one issue. The order of the multiple selected nodes are not preserved once dropped. Even whilst the nodes are in the process of being dragged, the order displayed in dragged nodes are different to what was originally selected. Then when dropped, they are sometimes a completely different order again.
There does not seem to be any kind of pattern of behavior as far as the order goes.
I have been using the radtreeview in a very large project for quite some time and have only just been made aware of this issue by one of our customers.
This is a large project integrated project so I can not post the code right now, but I will try and re-create the issue in a smaller project as an example in the meantime.
Has anyone else experienced this behavior, or better, know how to configure the treeview to preserve order during the drag and drop?
Thanks,
Dan K.
7 Answers, 1 is accepted
I've made a sample project trying to reproduce the problem, but to no avail.
Could you provide us with more information regarding your specific scenario?
Where do you perform the drag & drop, whether it's implemented on the server-side or on the client-side?
Regards,
Dimitar Terziev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

However, I have not solved another related small issue yet. When multiple items are selected in the event of them being dragged, the list of items under the cursor (that indicate the dragged items) are in the order that they were selected, rather than the order in which they existed in the list before being dragged. Is it possible to modify this behavior through some kind of configuration setting?
I had started on a sample project and figured out the previous problem, I will modify it to see if I can reproduce this smaller issue.
Thanks,
Dan.
I'm glad that you have managed to solve the re-ordering issue.
Regarding you second query, the standard behavior is that the items are shown in the order they appear in the RadTreeView, not in the order you have selected them.
Please try the drag-and-drop demo and let me know, if you experience the behavior you have explained there.
All the best,
Dimitar Terziev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

I also added a reference to the Telerik.Web.UI.dll file.
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"RadScriptManager1"
></
telerik:RadScriptManager
>
<
telerik:RadTreeView
id
=
"treeView"
AllowNodeEditing
=
"true"
EnableDragAndDropBetweenNodes
=
"true"
runat
=
"server"
EnableDragAndDrop
=
"true"
MultipleSelect
=
"true"
Skin
=
"Vista"
Visible
=
"true"
>
<
Nodes
>
<
telerik:RadTreeNode
Text
=
"Node 1"
></
telerik:RadTreeNode
>
<
telerik:RadTreeNode
Text
=
"Node 2"
></
telerik:RadTreeNode
>
<
telerik:RadTreeNode
Text
=
"Node 3"
></
telerik:RadTreeNode
>
<
telerik:RadTreeNode
Text
=
"Node 4"
></
telerik:RadTreeNode
>
<
telerik:RadTreeNode
Text
=
"Node 5"
></
telerik:RadTreeNode
>
<
telerik:RadTreeNode
Text
=
"Node 6"
></
telerik:RadTreeNode
>
<
telerik:RadTreeNode
Text
=
"Node 7"
></
telerik:RadTreeNode
>
</
Nodes
>
</
telerik:RadTreeView
>
This produces the problem I am talking about. The list shown when dragging the selected items will be in the order in which they are clicked, not the order in the list.
If there is a way to send you the entire sample project to make things easier, please let me know how.
I have also attached an image(screenshot) that illustrates my issue.
Thanks,
Dan.
I've tested this sample mark-up with the latest version of the controls and the dragged items were shown as the way they are in the RadTreeView structure.
Could you specify which version of the controls you are using so I could test it with this version.
Best wishes,
Dimitar Terziev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

I've made a test with the version of the controls you are using and indeed there is such an issue.
Please try to update your controls since this issue is already fixed in the 2010.3.1109 version.
Kind regards,
Dimitar Terziev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.