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

Drag and Drop image in Datalist

3 Answers 77 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
phuoc tran ngoc
Top achievements
Rank 1
phuoc tran ngoc asked on 21 Jul 2010, 04:22 PM

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

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 22 Jul 2010, 10:37 AM
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
0
phuoc tran ngoc
Top achievements
Rank 1
answered on 23 Jul 2010, 10:12 AM
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
0
Sebastian
Telerik team
answered on 23 Jul 2010, 11:21 AM
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
Tags
Ajax
Asked by
phuoc tran ngoc
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
phuoc tran ngoc
Top achievements
Rank 1
Share this question
or