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

Disable auto expand on drop

1 Answer 77 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kevin Hendriks
Top achievements
Rank 1
Kevin Hendriks asked on 28 Aug 2012, 09:13 AM
Hello,

How can I disable auto expand when I drop an item in the treeview.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 30 Aug 2012, 06:30 AM
Hi Kevin,

 Currently there is no out of the box way to disable this expansion on drop. You have to create your custom drag drop operation but this will be a lot of work for a small requirement. However, you can use the DropExpandDelay property of the RadTreeView and set it to a big TimeSpan interval , for example 2 hours.
You can find this demonstrated in the attached solution. 

public MainPage()
       {
           InitializeComponent();     
           this.tree2.DropExpandDelay = TimeSpan.FromMinutes(120);
       }
All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TreeView
Asked by
Kevin Hendriks
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or