This is a migrated thread and some comments may be shown as answers.

Reoder Nodes and Update Database & Disable Drag Drop per node?

0 Answers 100 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 19 Sep 2008, 03:29 PM
First, i have been looking a the examples on drag and drop and see how I can reorder the nodes. In my database I have an ORDER field that determines the order of records when displayed. How can I keep track of which nodes have been reorder so I can update my database?

Second, I have been trying to figure out how to disable dragging / dropping per node. Here is my structure:

Project
     Photo Set 1 (Disable Drag and drop and reorder)
          Photo 1 (Image with Thumbnail)
          Photo 2 (Image with Thumbnail)
     Photo Set 2 (Only Allow reordering of child nodes)
           Photo 3
           Photo 4

HEre is the treeview object on the ASPX page:

 

<

telerik:RadTreeView ID="rtvProjects" runat="server" EnableDragAndDropBetweenNodes="true" EnableDragAndDrop="true" OnNodeDrop="RadTreeView1_NodeDrop">

</telerik:RadTreeView>

I am creating the nodes problematically in the VB code behind. I tried setting the AllowDrop/AllowDrag per node, but it still lets be drag and drop between nodes and into the nodes.


I can give you all my code, if you need, but let me know if this makes sense.

Daniel

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Daniel
Top achievements
Rank 1
Share this question
or