UpdateDropPreviewLine not working with DropPosition.Inside

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    9 posts
    Member since:
    Dec 2011

    Posted 02 Oct 2015 Link to this post


    it seems, that UpdateDropPreviewLine is not working with DropPosition.Inside. DropPosition.After works fine, but I want to give the user a clue, if the drop would result in a new child node or a new sibling node. Is UpdateDropPreviewLine in principle limited to DropPosition.After and DropPosition.Before or is the problem in my code?

    Best regards

  2. Dinko
    Dinko avatar
    180 posts

    Posted 05 Oct 2015 Link to this post

    Hi Thomas,

    This  behavior is expected by design - when the DropPosition is set to Inside the preview line is not displayed. By default the preview line presenter is hidden. In order to display the line when the position is Inside you can write custom code. Basically, you can get the Canvas element that represents the preview line and update it manually in the DragDropManager's DragOver event handler.

    I have attached a sample project how you can implement this behavior.

    I hope this helps.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top