Drag/Drop - Need to have "Drop in" behavior always

2 posts, 0 answers
  1. Balaram Barange
    Balaram Barange avatar
    28 posts
    Member since:
    Apr 2009

    Posted 28 Sep 2011 Link to this post

    Hi,

    We have implemented drag-drop feature for the trees in our application - when we are dropping to destination tree node it shows "Drop after <destination-node>", "Drop before <destination-node>" and "Drop in <destination-node>" message - but we need that it always behaves like Drop in meaning if user is dropping in any node in between child-nodes of any parent node - the message should not read "Drop before <destination-node>" or "Drop after <destination-node>" instead it should read "Drop in <parent-node>"

    For example - if we have a parent node say P and there are child node say C1,C2,C3,C4 and now if we are dropping any node between C2 and C3 - it will say either "Drop before C3" or "Drop after C2" - but instead we want to show "Drop in P". We tried using TextDropAfter and TextDropBefore property - but this can only set the message to "Drop in" and thus "Drop before <destination-node>" and "Drop after <destination-node>" will read "Drop in <destination-node>" but we intend to show "Drop in <parent-node>".

    Please let know how to achieve this.

    Thanks,
    Bala
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 03 Oct 2011 Link to this post

    Hi Balaram Barange,

     This requirement cannot be implemented out of the box. You will have to create your own custom DragCue and change it dynamically using the RadDragAndDropManager events. Please let us know if you need more info on this.

    Regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top