Drag & Drop between two ListBoxes... DropInfo

2 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 15 May 2012 Link to this post

    HI,

    i'm using RadControls for WPF Q1 2012 SP1 + c# to create my application. The problem i have:

    I use two listboxes wich are bind to an observableCollection. Now i want to drag an item from listbox A to listbox B
    what is quiet simple. But on Drop in listbox B i want to save changes in my database. how do i get the information
    isdropped, which item is dropped,...?

    I tried the Drop (drop="myDropEvent") Event from the listbox, but that was not helpfull.

    Thanks
    regards
    Rene
  2. Nick
    Admin
    Nick avatar
    593 posts

    Posted 17 May 2012 Link to this post

    Hi Rene,

    You can do that in the Drop event of the control you are dropping upon. For the event to fire however, the drop control must have AllowDrop set to true on it.

    Hope this helps! 

    Regards,
    Nik
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top