AJAX :: Reorderlist Not Reordering?Aug 29, 2010
Reorderlist not reordering
Reorderlist not reordering
I am having an issue where if I simply click the draghandle (no mouse movement) the list is reordering itself by swapping the row I clicked on with the row below it. The sample site doesn't behave this way at all so I am at a loss. One thing I also noted that's different is that when i click the drag handle, the draghandle temple (dashed box) appears on the row below the clicked row. In the samples the dashed box appears on the clicked row.
Edit: Using VS 2008, .NET 3.5 and the ToolControlKit dll version: 3.0.30930.0
I'm developping a website in ASP.Net + VB code behind.I have a listbox that fills with Names, I would like to reorder that list using "drag and drop" instead of a up/down button that causes postback.View 2 Replies
Trying out the reorderlist AJAX control and having little satisfaction. I followed the Joe Stagner tutorial [URL]
<ajaxToolkit:ReorderList ID="ReorderList1" runat="server"
Im using LINQ2SQL
I have a reorder list that does not throw exeptions. But when i reorder the items the changes are not saved.
Im publishing the reorder asp tags and 2 methods that take care of the saving.
Maybe im not thinking straight with the LINQ 2 SQL?
******* CODE BEHIND METHOD **************
************ Database management method **************
public static void UpdateLinks()
I'm trying to add an item to the Reorderlist dynamically using the following code but nothing gets displayed.
Server Side Code: FieldInfo field = new FieldInfo(); field.FieldId = 1; field.Alias = "Text"; _selectedFieldsListBox.Items.Add(new ReorderListItem(field,_selectedFieldsListBox.Items.Count,ListItemType.Item));
Client Side Code: :
what I'm doing wrong? Or has anyone done this before?
i want to reorder my products. and my table is like below:Products:
and my aspx page is like below:
i can drag and drop the products but when i come to this page again i saw that there is nothing change there is no error however no update my positionnumber and i dont know why?
I hope to get some guidance on how to create reorder lists programmatically because of the situation described below.I have a page where I want to have a toDo Iist for each of several (typically 10) milestone categories. I can think of 3 options.I don't know in advance how many 'active' categories there will be but I there is a known fixed total of about 20 categories, of which from 1 to 20 may be 'active'1. Have one Master ReOrderList And Then Nest the Category ReorderLists Inside 2. Create the reorderlists programmatically.3. Brute force approach. Hardcode all 20 reorderlists and their associated sqldatasources, and then set visibilitydepending on which category is active. This approach is the simplest but has the disadvantage of too muchrepetitive code and the reorder lists would be in a fixed order, when I really want them to match the category order.View 3 Replies
enter new value into ReOrderList from a dropdownlist?
I am using the AJAX ReorderList, and inside the ItemTemplate I have a label and a checkbox. Now when in firefox I am able to change the checkbox checked state, but in IE it won't allow me to do anything with it. Its weird because the checkbox becomes that blue colour like when it gets focus, but it won't put the check in it or call the postback. The ReorderList is inside an UpdatePanel, so that I can monitor when the check changes on its postback. Below is the code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
I followed the following linkhttp://weblogs.asp.net/justinsaraceno/archive/2008/02/22/reorderlist-with-objectdatasource.aspxand manged to make the orderlist work fine except one thing and probably the most importent thingwhich is saving the reorder back to the databasewhat I changedfirst I'm using it as a c# web form inside a visual basic.net website. Is this OK?second I changed the connectionString to point to my database wich is in SQLEXPRESS ( NOT ATTACHED in App_Data inside the website as the example shows)third I changed the select and update statements and parameters to my needsafter all that it works but without saving the reorder back to databaseReorderClass.cs
DataList Not Being Refreshed When ReOrderList Changes
I need to create a table where every item in the cell can be drag and drop among themselves and and also drag and drop to other cell. I am thinking to create a ReorderList for every table cell but it come to a problem where I need to drag item from 1 ReOrderList to another ReOrderList when I need to drag the item in the cell to another cell. I have find through the internet but find no solution.View 4 Replies
Instead of using DataSourceID I have a DataSource built up in codebehind that I bind to the reorderlist. I have set "PostBackOnReorder=True" but how do I update the database on that postback? How do I collect the new order and then save it to the database?View 1 Replies
I have created an intranet site that has a reorder list.IE8 defaults to running intranet sites in compatibility mode. My reorderlist does not like this. Basically the drag/drop function goes away.
Now, i have tried adding the <meta
http-equiv="X-UA-Compatible" content="IE=8" /> but it does not fix it. It fixes most of my issues, but not the drag/drop.If i tell the browser to NOT use compatibility mode, everything seems to work as intended, but there is no way i can force all the users to disable it.
I am trying to create a UI that shows a list of pending work on the left side, and a similar list of planned work on the right side. I would like the user to be able to both reorder items within each list - this works fine with reorderlist; But to be able to move an item from one list to the other - this I can't make work with reorderlist. Is this possible and can anyone give some pointers on how to achieve it ?View 1 Replies
I have a page that uses the Ajax Reorder List.
It is based on the example code from Joe Stagner's excellent video.
The adding and reordering work perfectly.
I added a delete button in the Item template. However the delete function doesn't seem to do anything.
How to FindControl for Textbox in ReorderList
using 40412 in VS2010, I can't get reorderlist to work - can't pick any items up and move them around in any browser. sample site works fine, and I even tried referencing the dll from the bin directory there with no luck. tried running some code that binds data manually from a working project that uses a previous release and all I get is a regular list. converted data source to a sqldatasource and still no dice.
one oddity I do see between my non-working project and the other working examples (sample site and my older project) is that the generated list item div IDs are identical in my project, while the working examples all have unique IDs generated, ie:
non-working project: <li id="ReorderList1" style="vertical-align:middle;"> (all LIs identical)
working example (40412 sample site): ><li id="ctl00_SampleContent_ReorderList1__rli5" style="vertical-align:middle;"> (each line has unique suffix - in this case __rli5)
I am trying to create a UI that shows a list of pending work on the left side, and a similar list of planned work on the right side. I would like the user to be able to both reorder items within each list - this works fine with reorderlist, and to be able to move an item from one list to the other - this I can't make work with reorderlist.View 1 Replies
I cannot get my reorderlist item to convert to the edit item template correctly for some reason on the first click. On the second click it appears though everytime!
Here is my code which should set the item into edit mode:
protected void rlReorder_ItemCommand(object sender, ReorderListCommandEventArgs e)
ReorderList sendingList = (ReorderList)sender;
sendingList.EditItemIndex = e.Item.ItemIndex;
I have my ReorderList setup, and it seems to work. It doesn't give me any errors, and it allows drag/drop of the entries.
BUT, it never updates my datasource. I have tried putting breakpoints on the update events, both on the reorder list, but also on the datasource, none fires.
What could i possibly do wrong, to achieve this?
Here's my code, just in case: