How to Disable drag option in TreeView?

1 posts, 0 answers
  1. saravanakumar subramaniam
    saravanakumar subramaniam avatar
    28 posts
    Member since:
    May 2010

    Posted 13 Dec 2011 Link to this post

    Hi,

    I have implemented the Drag a item from "RadGridView" to "RadTreeView" and it is working fine. To drop an item into TreeView i have enable the IsDragDropEnabled="True", but it allowing drag and drop option with in TreeView. But in my case i need only to drag an item from Grid to Tree and not with in TreeView. Is there any way that we can avoid drag option in TreeView and only drop option should work.
    i tried by  IsDragDropEnabled="False" AllowDrop="True" , But no use....

    <telerik:RadTreeView x:Name="radTreeView"
                                        ItemTemplate="{StaticResource SilverlightFolderTemplate}"
                                        ItemsSource="{Binding Workspaces}"
                                        IsLoadOnDemandEnabled="True"
                                        SelectionMode="Single"
                                        IsExpandOnSingleClickEnabled="True"
                                        IsSingleExpandPath="True"
                                        IsRootLinesEnabled="True"
                                        IsLineEnabled="True"
                                        telerik:StyleManager.Theme="Office_Blue"
                                        IsDragDropEnabled="True" AllowDrop="True" IsEditable="True" />
Back to Top