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

2 posts, 0 answers
  1. vinoth
    vinoth avatar
    1 posts
    Member since:
    Jan 2011

    Posted 25 Feb 2011 Link to this post

            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.
  2. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 02 Mar 2011 Link to this post

    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" />
    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!
Back to Top