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

Can't Drop to RadGridView Header Row

2 Answers 86 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Michal
Top achievements
Rank 1
Michal asked on 08 Dec 2014, 04:13 PM
Hi,

I'm trying to drop to header row of RadGridView, but DragDropManager.DropHandler is not executed. Also DragVisual shows picture, that is not possible to drop to header row of RadGridView. I guess RadGridView catches all drop events and handles them internally, because of Column Reorder feature.

I there a way to somehow override default behavior of RadGridView and catch drop events to header row?

I attached screenshot and sample c# project.

http://1drv.ms/1qknccu

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 09 Dec 2014, 11:16 AM
Hi,

Please note that in order to get events that are handled internally raised, you should subscribe for the respective event handlers specifying the last
HandledEventsToo parameter to True.

For example:

private void SubscribeToDragDropEvents()
{
    DragDropManager.AddDropHandler(this.AssociatedObject, OnDrop, true);
       ...
}

Hopefully, this helps.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Michal
Top achievements
Rank 1
answered on 11 Dec 2014, 09:11 AM
Hi
I found a solution for this in my other thread.

http://www.telerik.com/forums/drag-and-drop-to-radgridview-header-row
Tags
DragAndDrop
Asked by
Michal
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Michal
Top achievements
Rank 1
Share this question
or