Drag Headers from GridView to ListBox

2 posts, 0 answers
  1. Justin
    Justin avatar
    1 posts
    Member since:
    Apr 2014

    Posted 15 Apr 2014 Link to this post

    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?
  2. Nick
    Admin
    Nick avatar
    593 posts

    Posted 17 Apr 2014 Link to this post

    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.

     
Back to Top