Set a node returning animation false

4 posts, 0 answers
  1. Damon
    Damon avatar
    3 posts
    Member since:
    Apr 2015

    Posted 01 Jul 2015 Link to this post

    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.

     

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 06 Jul 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Damon
    Damon avatar
    3 posts
    Member since:
    Apr 2015

    Posted 18 Aug 2015 in reply to Kiril Nikolov Link to this post

    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.
  5. Damon
    Damon avatar
    3 posts
    Member since:
    Apr 2015

    Posted 18 Aug 2015 in reply to Damon Link to this post

    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

     

     

     

Back to Top
Kendo UI is VS 2017 Ready