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

Dynamic RadListView drag-and-drop

1 Answer 59 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Joma
Top achievements
Rank 1
Joma asked on 25 Aug 2015, 04:01 AM

Hello,

 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 */
   <ItemTemplate>
      <RadListView ID='genreListView' OnItemDrop="RadListView_ItemDrop">
          <ItemTemplate> /*List of tracks per Genre */ </ItemTemplate>
      </RadListView>
   </ItemTemplate>
</Repeater>

 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.

      

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 27 Aug 2015, 07:11 PM
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.


Regards,
Konstantin Dikov
Telerik
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
Tags
ListView
Asked by
Joma
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or