How to prevent the item drag n drop from one node to another

4 posts, 0 answers
  1. developer
    developer avatar
    58 posts
    Member since:
    Nov 2015

    Posted 18 Jul Link to this post

    Hi,

    I'm working on drag and drop the node item with in the same node. It is working as expected. But it allows to drag and drop the child item from one node to another. It should be prevented.

    Dojo Example

    Appreciate your support to fix the issue.

    Thanks in advance.

  2. developer
    developer avatar
    58 posts
    Member since:
    Nov 2015

    Posted 18 Jul Link to this post

    In this screenshot. The last step should not happen. i.e. moving the SubItem to the Item level.

  3. Kendo UI is VS 2017 Ready
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 20 Jul Link to this post

    See the how-to help topic on disallowing drag to deep levels. You can change the condition in the drag event handler, so that other levels will not be handled. This will ensure the best UX, as the drag indicator will show that the drag is forbidden.

    Regards,
    Alex Gyoshev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  5. developer
    developer avatar
    58 posts
    Member since:
    Nov 2015

    Posted 20 Jul in reply to Alex Gyoshev Link to this post

    Thank you for the response Alex.

    In my case, there will be "n" levels of tree. so, the item which I've selected should move only with the node. not outside. it may be upside or down.

    Check this stackoverflow thread.

Back to Top
Kendo UI is VS 2017 Ready