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

Drag and Drop images between two listviews

4 Answers 186 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Ajay Kumar
Top achievements
Rank 1
Ajay Kumar asked on 10 Mar 2015, 06:23 AM
I need a help for listview drag n drop opretion. where  listview1 hold the images and i want to drag images from listview1 to listview2 and then when i click any button i want all paths of Images which is in the listview2. and also i want to set the image size on listview2. Please help me.

4 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 12 Mar 2015, 03:30 PM
Hello Ajay,

Thank you for writing.

I have created a small sample project that contains the desired functionality. First I created a custom object that contains the image and its path. I used it to bind the first RadListView to a collection of such objects. Then I used the PreviewDragDrop event to handle the drag and drop functionality. The second RadListView is not data bound, it just shows the images and stores the path in the item's Tag. The following articles will help you to understand how everything works:
I hope this helps. Should you have any other questions do not hesitate to ask.

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

 
0
Ajay Kumar
Top achievements
Rank 1
answered on 13 Mar 2015, 11:10 AM
Hello Dimitar ,
Thank you for you reply , But this example is not fulfill my requirement , so i attach a file where will see two listviews , first listview content all images and listview2 cantent only those images which i drag from listview1, and i also want to reorder listview2 images and finaly i want all paths of those images which is in the listview2.
Please give me some solution .

thank you,
Ajay 
0
Accepted
Dimitar
Telerik team
answered on 17 Mar 2015, 12:44 PM
Hello Ajay,

Thank you for writing back.

I am not sure which part of the example does not fulfill your requirement. I have recorded a small video and you can see that you can drag and drop from the first to the second one, reorder the images and retrieve the images path.

I am looking forward to your reply.
 
Regards,
Dimitar
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.

 
0
Ajay Kumar
Top achievements
Rank 1
answered on 19 Mar 2015, 04:13 PM
Thanks Dimitar,

Thank you for your reply. the example you sent me is working for me . 

regard 
Ajay
Tags
ListView
Asked by
Ajay Kumar
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Ajay Kumar
Top achievements
Rank 1
Share this question
or