Drag Drop Items Within ListView

Mar 11, 2011

I have a listview showing images like ImageViewer and I want to implement Drag-Drop behavior within ListView. how can i achieve the Srag-Drop inside the below kind of customized ListView.

<asp:ListView ID="lvPhotoViewer" runat="server" GroupItemCount="3" InsertItemPosition="LastItem">
<LayoutTemplate>
<table id="groupPlaceholderContainer" runat="server" border="1">
<tr id="groupPlaceholder" runat="server">
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<td id="Td4" align="center" style="background-color: #eeeeee;">
<asp:Image runat="server" ID="imPhoto" Height="100px" Width="100px" ImageUrl='<%# "~"+Eval("PhotoUrl") %>' />
<br />
<asp:Label ID="DefaultPhotIDLabel" runat="server" Text='<%# Eval("PhotoName") %>' />
</td>
</ItemTemplate>
<GroupTemplate>
<tr id="itemPlaceholderContainer" runat="server">
<td id="itemPlaceholder" runat="server">
</td>
</tr>
</GroupTemplate>
<InsertItemTemplate>
<td id="Td3" width="150px" height="150px" runat="server" align="center" style="background-color: #e8e8e8;
color: #333333;">
<asp:FileUpload ID="fileUpload" runat="server" />
</td>
</InsertItemTemplate>
</asp:ListView>
Code Behind:
public class ImageEntity
{
public string PhotoName { get; set; }
public int PhotoIndex { get; set; }
public string PhotoURL { get; set; }
}
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
IList<ImageEntity> imagesList = new List<ImageEntity>()
{
new ImageEntity(){ PhotoName="House1", PhotoIndex=1, PhotoURL= @"ImagesHouse-01.JPG" },
new ImageEntity(){ PhotoName="House2", PhotoIndex=2, PhotoURL= @"ImagesHouse-05.JPG" },
new ImageEntity(){ PhotoName="House3", PhotoIndex=3, PhotoURL= @"Imageshouse.jpg" },
new ImageEntity(){ PhotoName="House4", PhotoIndex=4, PhotoURL= @"Imageshouse2.jpg" }
};
lvPhotoViewer.DataSource = imagesList;
lvPhotoViewer.DataBind();
}
}

View 1 Replies


Similar Messages:

Web Forms :: Drag And Drop In Listbox Items?

Mar 30, 2010

I want to know how to handle drap and drop event between two listboxes. I have two listboxes. If I drag one item from one listbox, it will drop on other listbox. And also let me know how to rearrange the items in listbox.

View 3 Replies

AJAX :: Drag And Drop Items Between 2 Listviews?

Feb 6, 2010

I am wondering... is it possible to drag and drop items between 2 listviews.

I was thinking of an alternative Instead of using conventional duallistboxes.

View 4 Replies

Web Forms :: Drag Drop Items From One GridView To Other

Nov 3, 2012

I want to drag and drop rows from one grid view to other,,for this i follow this link [URL] ...

I want to use it with master page..., this work fine without including master page but when I include mater page with in content page, it did not work, I want to use it with master page. How to get rid of this problem ....

View 1 Replies

Web Forms :: Listview Drag And Drop With Autoscrolling?

Feb 22, 2010

I am developing website using ASP.NET, C# and JScript. I have the webpage with List view, and the list view items are added dynamically. I am working with Drag and Drop in the listview, I have done the Drag and Drop functionality using javascript, But that is not scrolling up and down when we have more values in the list view.

automatic scrolling in the List view control when we drag the Items on List View

View 1 Replies

AJAX :: Drag And Drop List Items Into Panels Or Images?

May 5, 2010

I want to develop a web form where I have a list of elements, so I want to drag a single document into an image (ex. trashcan icon, favorites icon, news icon, etc).

I read some samples of panel dragging, but this is not what I am looking for.

View 2 Replies

VS 2010 - Drag And Drop Items In A List To Reorder Sequence

Jul 7, 2011

Is there a way to drag and drop the item in a listbox to reorder the sequence?

View 8 Replies

Forms Data Controls :: Listview Drag And Drop With Auto Scrolling

Feb 15, 2010

I am developing website using ASP.NET, C# and JScript. I have the webpage with List view, and the list view items are added dynamically. I am working with Drag and Drop in the listview, I have done the Drag and Drop functionality using javascript, But that is not scrolling up and down when we have more values in the list view. automatic scrolling in the List view control when we drag the Items on List View

View 5 Replies

Forms Data Controls :: Listview Multiple Rows Drag And Drop?

Jan 28, 2010

in dragging multiple rows using the jquery plugin used in this link.

http://www.pedrera.com/blog/index.php/aspnet-listview-drag-and-drop-reordering-using-jquery/.

I implemented the single row drag and drop and its working perfectly but I am new to jquery so finding difficult to figure out.

View 1 Replies

Implement Drag And Drop?

Feb 2, 2010

I want to implement some drag and drop behaviors in my ASP.NET app. Could someone point me in the right direction for some articles and samples? For example, one example of drag and drop I want to implement is for sorting things.

View 4 Replies

Web Forms :: Drag And Drop Between 2 Using VB

Jun 4, 2010

I currently have two listboxes and I use arrow buttons to move items from one list to another. Is there a way I could implement drag and dropping between those 2 listboxes.

View 3 Replies

Drag And Drop Dynamically In WPF

Mar 26, 2016

i've built a WPF application with two listBoxes.I managed to drag and drop elements from one listbox to the other, but it always gets added to the end/buttom of the second listbox.How can i drag and drop the element and place it in the other listbox, but where i want it to be, where the cursor is located/ponits and not in the end (as the last element).

View 1 Replies

Drag And Drop FileUpload Using WPF

Jun 18, 2012

In WPF I have a textBox . I need to drag and drop textfiles ie in notepad from desk top to textbox of wpf. I managed to get the contents of notepad to textbox. But I need file path to be in browser so that I can transfer files from client to client.

I need the file path instead.

privatevoid textBox1_PreviewDragEnter(object sender, DragEventArgse) {
bool isCorrect = true;
if (e.Data.GetDataPresent(DataFormats.FileDrop, true) == true
) {
string[] filenames = (string[])e.Data.GetData(DataFormats.FileDrop, true
);

[Code] ....

View 1 Replies

Web Forms :: Drag And Drop Between Two Controls?

Mar 24, 2010

Anyone who can give me a tip on articles explaining how I can implement a drag n drop functionality between two asp controls? I'm using Asp.net 3.5.

View 1 Replies

Web Forms :: WebPart Drag And Drop?

Feb 17, 2011

I cannot get the Drag and Drop functionality of Web Parts is to work. I have a very simple test page with two WebPartZones.. In the OnInit method of the code behind I put the page in design mode. In the first zone I have a textbox.At runtime the text box renders as a web part. When I hover over the web part header my mouse pointer changes the 'move' pointer, but I cannot drag the item. I do not see it dragging and the part never moved. I am using Visual Studio 2010 with IE 8. I have tried IE8 in compatibility mode and regular mode. The results are the same. Here is the markup from my test page:

<form id="form1" runat="server">
<div>
<asp:WebPartManager ID="WebPartManager1" runat="server">
</asp:WebPartManager>
<asp:WebPartZone ID="LEFT" runat="server">
<ZoneTemplate>
<asp:TextBox ID="tb" runat="server" />
</ZoneTemplate>
</asp:WebPartZone>
aa
<asp:WebPartZone ID="RIGHT" runat="server">
</asp:WebPartZone>
aa
<asp:EditorZone ID="EditorZone1" runat="server">
</asp:EditorZone>
</div>
</form>

Here is the code behind:

protected override void OnInit(EventArgs e)
{
base.OnInit(e);
WebPartManager mgr = WebPartManager.GetCurrentWebPartManager(this);
mgr.DisplayMode = WebPartManager.DesignDisplayMode;
}

What am I missing?

View 2 Replies

JQuery :: Drag And Drop Listbox?

Mar 4, 2011

I hav two listboxes, how can i drag and drop between these two using jquery

View 4 Replies

Drag And Drop - Able Organization Chart

Jul 26, 2010

I have to generate an organization chart, in my asp.net application and it should supports drag and drop feature to update the linkage between organization structure. What would be the best way to deal with it, (jQuery or silver light or .net chart controls). My primary needs is to support drag and drop.

View 4 Replies

Drag And Drop UI Layouts Using JQuery

Feb 17, 2011

For our next project (a small app in ASP.NET/C#) we have to create drag and drop zones in the UI so that components/widgets can be dragged and dropped and layouts can be changed dynamically (for example, the user should be able to switch between two-column to a three-column layout from the front end). After doing some searching, I got to know that there are two approaches: Use Web parts and Content-zones. Using jQuery.

I also learnt that jQuery approach is preffered, but I would like to know how can I create such zones in my application and also save these zones per user (in the D so that when the new request comes for that user their preferred layout is displayed? I basically want to know if there are some tutorials on creating persistable drag and drop zones using jQuery.

View 3 Replies

Drag And Drop Between Multiple ReorderLists?

Feb 11, 2011

I have two reorder lists on my page and what I am trying to do is allow my users to drag from one list to another list.

Basically its a priority list so list one is high and list two is low and the user can move them between the two.

Now they will work independantly but I can't change them from one list to another.

View 2 Replies

Drag And Drop Image On GridView?

Feb 7, 2011

How can i drag and drop image from panel to DataGridView?

View 5 Replies

C# - Drag And Drop A Child Node?

Jul 7, 2010

I had populated data in TreeView control. How will I drag a particular child node from a parent node and drop the dragged one to a DIV or any portion, using JQUERY ? I know in jquery, there are methods "draggable" and "droppable" to make this possible. But I want to drag a particular child node and drop it.

Or atleast How to fetch the text/id of a particular child node using jquery ? I hope I can drag,if I can fetch the child node

View 2 Replies

Drag & Drop Shopping Cart?

Mar 24, 2010

I am looking for a drag & drop shopping cart, which I can use with asp.net & can save the details in sql server 2005 database. I don't bother if it from ajax, javascript or jquery.Actually I have a grid, in which I am having picture, product name & price (say), so either I could be able to drag the row to the cart to add or increase the product quantity. or on click on the add to cart button, it will flow to the shopping cart.

View 10 Replies

C# - Allow Repeater To Be Arranged Using Drag-drop?

Mar 31, 2010

I have a repeater that's bound to a SQL Data Source (using ASP.NET). Are there any JQuery plugins/efficient way of converting my repeater into something that can be sorted via drag and drop? i.e. users can rearrange the order of the data, which updates the database?

View 2 Replies

Web Forms :: Drag And Drop - Validate When Submitted

Mar 16, 2010

I came across this example [URL] I want to create a form that will be validated when Submitted. In the above example you can keep on dragging colored boxed on the Drop It Here area. When a form is submitted, I want to validate Drop It Here area to see if it is empty or user drop a colored box here. Is this possible to do and if so, how to do it. I tried regular validation coltrols and they didn't seem to work.

View 1 Replies

How To Provide Drag And Drop Facility In Webpages

May 8, 2010

I have a small doubt.Can we provide Drag and Drop facility in asp.net websites like in desktop applications.

If possible how can we provide that facility in our asp.net web sites

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved