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

Set a node returning animation false

3 Answers 10 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Damon
Top achievements
Rank 1
Damon asked on 02 Jul 2015, 01:50 AM

Let's say there're two treeview components and you are trying to drag&drop an item to the tree on the another side and assume that it fails to drop on the target treeview.

 

Then you are going to see the node being returned to the original position.

I want to disable the action. I read through the documentation ( http://docs.telerik.com/kendo-ui/api/javascript/ui/treeview ) but no clues have been found.

Collapsing and expanding animation can be manipulated here.

 

Any idea?

Thank you in advance.

 

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 06 Jul 2015, 06:50 AM
Hello,

You can use the drop event and just remove the item from the treeview if you do not want to get it returned. Here is an example:

http://dojo.telerik.com/AQeSA

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Damon
Top achievements
Rank 1
answered on 18 Aug 2015, 05:17 AM
Have you tested your code? It doesn't work and the shadow element remains on the screen, which looks ugly. I tried your code on IE11 btw.
0
Damon
Top achievements
Rank 1
answered on 18 Aug 2015, 05:31 AM

It's been a while I'm away from client side development with Kendo UI and I realized what I posted here today.

 

The administrator gave an answer but it doesn't work. I improved the answer and now it works.

The returning back animation now has been gone.

 

You can check it out here http://dojo.telerik.com/AQeSA/3

 

 

 

Tags
TreeView
Asked by
Damon
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Damon
Top achievements
Rank 1
Share this question
or