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

Disable drag and drop between any two drag and drop disable treeview nodes

1 Answer 99 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
vinoth
Top achievements
Rank 1
vinoth asked on 25 Feb 2011, 09:36 AM
Hi
        I want to disable the drag and drop propertity between any two drag and drop disabled Radtreeview nodes in a sliverlight treeview. can u help me.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 02 Mar 2011, 02:29 PM
Hello vinoth,

Could you please elaborate more on your scenario since we are unable to understand you correctly? Probably, a schema of type
Item A
  -Chilld 1
  -Child  2
Item B
   -Child 3
   -Child 4
And description like: "Dragging an Item is forbidden , drag and drop a child from one item to another is allowed" would be highly appreciated.
However, you can disable/enable drop on specific items like so:
<telerik:RadTreeView x:Name="tree" IsDragDropEnabled="True">
         <telerik:RadTreeViewItem Header="Drive A" />
         <telerik:RadTreeViewItem Header="Drive B" IsDropAllowed="True"/>
         <telerik:RadTreeViewItem Header="Drive C" IsDropAllowed="False"/>
         <telerik:RadTreeViewItem Header="Drive D" />
     </telerik:RadTreeView>
You can also perform various drag and drop specific operations with the RadDragAndDropManager events.

Kind regards,
Petar Mladenov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
DragAndDrop
Asked by
vinoth
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or