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

Determine the row when doing a drag/drop on the grid.

3 Answers 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 26 Oct 2010, 04:53 PM
This seems to be something that would have been requested before, but I just can't seem to find an example.  Basically, I want to be able to drag some images files, from say, a file explorer window, and drop them on a gridview row.  The row that the items are dropped on would most likely not be the selected row in the grid.   Any help would be greatly appreciated.  Thanks, Kevin.

3 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 27 Oct 2010, 10:04 AM
Hi Kevin,

I have prepared sample application demonstrating how determine the  destination row when dragging from external program. Please have a look and let me know if you have any other questions.

Sincerely yours,
Tsvyatko
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
Kevin
Top achievements
Rank 1
answered on 28 Oct 2010, 11:53 PM
Thanks for the quick reply!   Your sample application addresses my question exactly.  However, when I added the code to my application,  everything worked fine if I dropped my items on the first 6 rows.  However, on the 7th and subsequent rows, the result callback is never invoked, so the elements list ends up with 0 items.   Any thoughts on what could be occuring?   Thanks!
0
Kevin
Top achievements
Rank 1
answered on 29 Oct 2010, 12:01 AM
Got it!  I changed the code to use the root variable as the first parameter, rather than the subtree variable.  Everything is working great.  Thanks!
Tags
GridView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or