Drag and Drop images between two listviews

5 posts, 2 answers
  1. Ajay Kumar
    Ajay Kumar avatar
    3 posts
    Member since:
    Mar 2015

    Posted 10 Mar 2015 Link to this post

    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.
  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 12 Mar 2015 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ajay Kumar
    Ajay Kumar avatar
    3 posts
    Member since:
    Mar 2015

    Posted 13 Mar 2015 in reply to Dimitar Link to this post

    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 
  5. Answer
    Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 17 Mar 2015 Link to this post

    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.

     
  6. Ajay Kumar
    Ajay Kumar avatar
    3 posts
    Member since:
    Mar 2015

    Posted 19 Mar 2015 in reply to Dimitar Link to this post

    Thanks Dimitar,

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

    regard 
    Ajay
Back to Top
UI for WinForms is Visual Studio 2017 Ready