Dynamic RadListView drag-and-drop

2 posts, 0 answers
  1. Joma
    Joma avatar
    1 posts
    Member since:
    Aug 2015

    Posted 24 Aug 2015 Link to this post


     I am working on a concept much like in your demo here (http://demos.telerik.com/aspnet-ajax/listview/examples/itemdragdrop/defaultcs.aspx), however, the difference is that instead of Link Buttons for the genre, I have RadListView instead so it looks something like this.


    <RadListView ID='tracksListView'></RadListView> /* List of all tracks */
    <Repeater ID='genreRepeater'>    /* List of all Genre */
          <RadListView ID='genreListView' OnItemDrop="RadListView_ItemDrop">
              <ItemTemplate> /*List of tracks per Genre */ </ItemTemplate>

     I've created the server side event for the Item Drop of RadListView however, when I'm ​dragging an item to another RadListView (either tracksListView or genreListView), the e.DestinationHtml on the ItemDrop event shows the ID of the origin.


    For example,


    The repeater generated 3 genre (pop, love, classic) and when I drag a track from pop to love, the e.DestinationHtml returns the ID of the radlistview of pop.


    Please help, thank you.


  2. Konstantin Dikov
    Konstantin Dikov avatar
    2409 posts

    Posted 27 Aug 2015 Link to this post

    Hello Joma,

    The RadListView control does not generate wrapping element and you may  need to use a wrapping element with changing ID, so you can determine within which RadListView the item was dropped.

    If any further assistance is needed I would suggest that you open a regular support ticket and attach a sample, runnable project with dummy data, so we can test it locally.

    Konstantin Dikov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top