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

Drag item off the itemscontrol just to remove it

2 Answers 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vaflis Vafliauskas
Top achievements
Rank 1
Vaflis Vafliauskas asked on 23 Feb 2010, 09:56 PM
Hello, i'm willing to know if there is any way to get some kind of event from DNDmanager or a status that could say "Item is in dropinpossible state but mouse released" so if this case happens i remove item from itemscontrol. I need this because user could easily drag in items he wants, and to remove items - use drag off, not some kind of context menu.

2 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav
Telerik team
answered on 25 Feb 2010, 03:46 PM
Hi Vaflis Vafliauskas,

In this case a DragInfo event with status "DragCancel" will fire. Unfortunately this event will also fire if the user presses the Esc key.

Alternatively you can make your whole application a drop target and handle any unhandled drop completions there and treat them as item removal.

Do you think that this will work for you?

Regards,
Miroslav
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Vaflis Vafliauskas
Top achievements
Rank 1
answered on 25 Feb 2010, 04:27 PM
Thank you, that is the exact thing i need.
Tags
General Discussions
Asked by
Vaflis Vafliauskas
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Vaflis Vafliauskas
Top achievements
Rank 1
Share this question
or