This is a migrated thread and some comments may be shown as answers.
Dropping on empty part of a grid
2 Answers 11 Views
This is a migrated thread and some comments may be shown as answers.
Valerie
Top achievements
Rank 1
Valerie asked on 20 Feb 2013, 10:13 PM
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 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 22 Feb 2013, 09:54 AM
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.

0
Valerie
Top achievements
Rank 1
answered on 26 Feb 2013, 03:58 AM
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.
Asked by
Valerie
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Valerie
Top achievements
Rank 1
Share this question
or