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

Drag Headers from GridView to ListBox

1 Answer 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 15 Apr 2014, 03:37 PM
Hello, I have been searching for how to do this for days now and coming up empty.  Finally I decided to make my own thread on the issue.  What I want to do it click and drag a Header from a RadGridView and drop the header into a RadListBox.  When the header is dropped, i want the Gridview to hide the column and add the column header text to the listbox.  Is this possible?

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 17 Apr 2014, 03:27 PM
Hi Justin,

Basically, you need to handle the DragDropEvents for both controls. 

You can do it by handling the DropEvent for the ListBox, and add the column to its items source there, and handling the DragDropCompleted event for the GridView in order to remove the Column from the Columns collection.

Hope this helps. 

Regards,
Nik
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.

 
Tags
GridView
Asked by
Justin
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or