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

Gridview ColumnGroups - Dragdrop within group only

1 Answer 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 29 May 2018, 09:08 PM

I'm using column groups.  Users can rearrange columns but i would like to prevent them from dragging columns to another group.

Thanks,

John

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 30 May 2018, 09:27 AM
Hello, John,    

RadGridView handles the whole drag and drop operation by its RadGridViewDragDropService. The PreviewDragOver event allows you to control on what targets the element being dragged can be dropped on. In the RadDragOverEventArgs you have access to the target element and you can decide whether the drop operation is allowed which is controlled by the CanDrop argument. Additional information about the drag and drop service is available in the following help article: https://docs.telerik.com/devtools/winforms/gridview/drag-and-drop/radgridviewdragdropservice

I hope this information helps. If you have any additional questions, please let me know. 

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or