Drag and Drop image in Datalist

4 posts, 0 answers
  1. phuoc tran ngoc
    phuoc tran ngoc avatar
    9 posts
    Member since:
    Nov 2009

    Posted 21 Jul 2010 Link to this post


    Hi all

    I'm writing a web to manage image. I have an database name 'Manage_Image' with one table 'images' (int- id, nvarchar- imagesource) and I have a web page. Now I can load images to Datalist, but I wonder can I drag and drop a image to a nother position of the Datalist(as window explorer). Please help me at this
    thank you very much!

    Phuoc
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 22 Jul 2010 Link to this post

    Hello phuoc,

    You may consider implementing the drag and drop functionality using RadListView as illustrated on this demo. Examine the code snippets and the description for more details.

    Best regards,
    Sebastian
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. phuoc tran ngoc
    phuoc tran ngoc avatar
    9 posts
    Member since:
    Nov 2009

    Posted 23 Jul 2010 Link to this post

    Hi Sebastian

    I don't mean so. Imazing, I have load 20 images into a Datalist, when i drag and drop the first image to the 20th image, the position of two image change. the first now is the 20th position and the 20th image now will be the first position.
    it just change position together between two images. help me please!

    thanks
    Phuoc
  4. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 23 Jul 2010 Link to this post

    Hello phuoc,

    You may consider modifying the implementation provided in the example for your custom scenario. The idea would be to reorder the items in the listview's source and rebind it after you drag and drop an item with image in it in different place.

    Best regards,
    Sebastian
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top