Dropping on empty part of a grid

3 posts, 0 answers
  1. Valerie
    Valerie avatar
    36 posts
    Member since:
    Nov 2011

    Posted 20 Feb 2013 Link to this post

    Hi,
    I have a requirement to allow the user to drop an object onto the grid even if the grid has no rows. However my callback methods for the AddDragOverHandler and AddDropHandler aren't called if I'm not over a row. How can I get called back in this case?
    Thank you
  2. Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 22 Feb 2013 Link to this post

    Hello Valerie,

    I have attached a sample project, that meets your requirements. Please refer to it and let me know if you need further assistance on this!

    All the best,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Valerie
    Valerie avatar
    36 posts
    Member since:
    Nov 2011

    Posted 25 Feb 2013 Link to this post

    From your sample I see what I need was to add the property AllowDrop="True". I had added this and IsDragDropEnabled="True" once before and it made my other dragdrop code stop working. However, just adding AllowDrop does exactly what I want. It lets the rest of my dragdrop work and also allows me to drop on an empty grid. 

    Thank you so much.
Back to Top