TreeView Drag-n-Drop questions

Posted by: r-limanowski on 14 September 2017, 12:00 pm EST

    • Post Options:
    • Link

    Posted 14 September 2017, 12:00 pm EST

    Hello,

    thank you for the widget!

    Two questions concerning it:

    1. is it possible to d&d in “copy” instead of “move” mode?
    2. is it possible to d&d to a target different from TreeView?

      (ListBox or Grid)

    Regards

    Richard

  • Posted 14 September 2017, 12:00 pm EST

    Hello Richard,

    We are looking into this issue and will be back soon.

    Thanks,

    Manish Kumar Gupta

  • Posted 14 September 2017, 12:00 pm EST

    Hello Richard,

    We apologize for the delayed response.

    There is no direct way for copy node on drag and drop instead of move. However, you can handle dragStart and drop event of tree view and update source accordingly.

    For your reference, please see the attached sample that implements the same.

    Regarding Drag and drop to different target(except TreeView control ), we are investigating and let you know as soon as we get any update on this.

    Thanks,

    Manish Kumar Gupta

    2017/04/TreeView_copyItems.zip

  • Posted 14 September 2017, 12:00 pm EST

    Hello Manish,

    thank you very much for the idea.

    The trick should do for what I try to implement.

    Thanks,

    Richard

  • Posted 28 February 2018, 7:32 am EST

    Hi,

    The control uses the standard HTML5 drag/drop API, so you can craete custom drop targets for nodes by handling a few HTML events. For example:

    http://jsfiddle.net/Wijmo5/to263rrm/

    For details about the standard HTML5 drag/drop API, see here:

    https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels