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

Blocking a drop operation

1 Answer 62 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
zAxis
Top achievements
Rank 1
zAxis asked on 08 Apr 2011, 11:03 PM
How can I drag/drop nodes within a treeview, but block the drop (or change the destination index) for some locations.

I have a treeview which is used to manage job scheduling set up with the level 0 nodes being foremen and level 1 nodes as jobs.
The job nodes at the top of the list for each foreman have a custom attribute on them to denote that it is started and they are not draggable.  I need to either block dropping the unstarted jobs in the middle of the started ones or change the destination index to the first one after the last started job.

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 13 Apr 2011, 03:27 PM
Hi zAxis,

I have attached a sample page with a simple drag and drop between two RadTreeViews as well as comments where you would need to implement the check if the node can be dropped or not. Here you can read more about client-side events of the RadTreeView

All the best,
Kate
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.

Tags
TreeView
Asked by
zAxis
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or