This is a migrated thread and some comments may be shown as answers.

UpdateDropPreviewLine not working with DropPosition.Inside

1 Answer 76 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
IT-Support
Top achievements
Rank 2
IT-Support asked on 02 Oct 2015, 11:52 AM

Hi,

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
Thomas

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 05 Oct 2015, 11:42 AM
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.


Regards,
Dinko
Telerik
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
Tags
TreeView
Asked by
IT-Support
Top achievements
Rank 2
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or