Deny drop in the grid view ?

2 posts, 0 answers
  1. Michael
    Michael avatar
    19 posts
    Member since:
    Aug 2014

    Posted 16 Jul 2015 Link to this post

    Hey all.

    We currently have a data grid which we allow the user to drop a list of files onto (from file explorer, for example). We would like to deny the drop if there are invalid files in the list, but I can't see how to do that with the GridView (the TreeView seems to have a much richer drag/drop implementation).

    Could I please have some guidance, as I'm at a bit of a loss.


  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 16 Jul 2015 Link to this post

    Hi Michael,

    You can try setting the e.AllowedEffects as DragInitialize/ DragOver events are raised:

    e.AllowedEffects = DragDropEffects.None; 
    Let me know how this works for you.

    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
Back to Top