AJAX :: ReorderList Edit Item Not Working?

Jan 21, 2011

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;
}

View 1 Replies


Similar Messages:

AJAX :: Add Item To Reorderlist?

Feb 25, 2011

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?

View 2 Replies

AJAX :: Drag Item From ReorderList A And Drop On B

Apr 21, 2010

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

AJAX :: ReOrderList Delete Command Not Working?

Aug 7, 2010

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.

[Code]....

View 2 Replies

AJAX :: Reorderlist Not Working With 40412 / VS2010?

Jun 2, 2010

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)

View 4 Replies

Forms Data Controls :: Validating Page With Listview Edit Item And Insert Item Templates Are Both Present

Aug 9, 2010

I have a listview set up in "flow" mode where the existing records are all on an extended page so you can scroll down to any record.

The InsertItem Template is in the first position, making it easy to insert a new record.

And one can scroll down the page to any record, click the edit button and update that record -- nice having everything on one scrollable page.

I am running into a problem with validations. I have validation controls restricting inputs for all the textboxes on the Insert Item template. They work fine. And on Item Inserted I am running a page validation:

Page.Validate()
If Not Page.IsValid Then
e.Cancel = True
End If

which works fine also.

The problem occurs when I scroll down to an existing record, and go to edit it. I have all the same validation constraints on the textboxes for the EditItemTemplate as I have on the InsertItemTemplate. But I cannot successfully do a page validation on updating the record. The code I am using on update is:

Protected Sub LVRentals_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewUpdateEventArgs) Handles LVRentals.ItemUpdating
Page.Validate()
If Not Page.IsValid Then
e.Cancel = True
End If
End Sub

This results in a Cancel even if there are no validation errors on the InsertItemTemplate because the Page.Validate() seems to be causing the InsertItemTemplate to think its fields should be filled out also.

Here is the code for a typical entry of the InsertItem Template:

[code]....

All the controls in the Edit Item template are part of ValidationGroup "edit1" and those of the InsertItem Template are part of ValidationGroup "edit2"

How can I get around receiving validation errors on the InsertItem Template when I am trying to validate just the EditItemTemplate when both are present on the page?

View 2 Replies

AJAX :: Gridview Inline Edit Not Working?

Apr 8, 2010

my code:

[Code]....

when i click on the "edit" button on the commandField, nothing happens

View 4 Replies

AJAX :: Masked Edit Control Is Not Working?

Sep 3, 2010

I'm using MaskedEditExtender for numeric field (i.e.%). In that field, user can enter the percent value between 1 and 100 and also decimals like 12.34. Doing this, I have used this code which is not working.

<ajaxToolKit:MaskedEditExtender ID="TestDetailsControl_maxTotalScoreMaskedEditExtender"
runat="server" Enabled="True" ErrorTooltipEnabled="True" Mask="999.99"
MaskType="Number" AutoComplete="true" AutoCompleteValue="" InputDirection="LeftToRight"

[code]...

View 2 Replies

AJAX :: Data List Edit Not Working?

Mar 1, 2011

i have data list in update panel edit delete commands are not working

if i remove update panel then it is working fine

View 1 Replies

AJAX :: Masked Edit Backspace Not Working On Chrome?

Sep 23, 2010

I am working on an app and have added masked edits to some of the textboxes. On Google Chrome v6.0.472.62 the backspace button is inoperative along with the delete button. I have found no method around this. It also functions incorrectly on the ajax toolkit website: [URL]

Chrome is fairly popular and I doubt I can use this code with this issue.

View 1 Replies

AJAX :: Mask Edit Extender Not Working Inside Grid?

Mar 3, 2011

I have put one mask edit extender for a textbox which is inside a Gridview templete field and the MaskType="Number

Mask="99,99,999.99"My problem is described below Commas are not dispalying inside the GRidView.After clicking in the textbox its coming and immediately vanishing.

e.g. after typing it should come like this 34,56,789.00 but its coming like 3456789.00

View 2 Replies

AJAX :: ReOrderList Not Dragging?

Mar 29, 2010

Trying out the reorderlist AJAX control and having little satisfaction. I followed the Joe Stagner tutorial [URL]

<ajaxToolkit:ReorderList ID="ReorderList1" runat="server"

View 1 Replies

AJAX :: Reorderlist Not Reordering?

Aug 29, 2010

[Code]....


Reorderlist not reordering

View 3 Replies

AJAX :: ReorderList Is Not Updating?

Mar 27, 2011

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?

ASP tags

[Code]....

******* CODE BEHIND METHOD **************

[Code]....

************ Database management method **************

public static void UpdateLinks()
{
db.SubmitChanges();
}

View 1 Replies

AJAX :: ReorderList: No Error But Not Update?

Sep 13, 2010

i want to reorder my products. and my table is like below:Products:

id,ProductName,ProductImage,PositionNumber,IsActive,AddedDate

and my aspx page is like below:

[Code]....

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?

View 1 Replies

AJAX :: Number Of ItemTemplate In Reorderlist?

Apr 2, 2010

Is there any way to get the number of ItemTemplate(rows) in Ajax Reorderlist by javascript?

View 1 Replies

AJAX :: Creating Reorderlist Programmatically?

Aug 18, 2010

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

AJAX :: Enter New Value Into ReOrderList From A Dropdownlist?

Aug 8, 2010

[Code]....

enter new value into ReOrderList from a dropdownlist?

View 1 Replies

AJAX :: ReorderList Reordering On Click?

Jul 12, 2010

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.

The ReorderList:

[Code]....

The CSS:

[Code]....

Edit: Using VS 2008, .NET 3.5 and the ToolControlKit dll version: 3.0.30930.0

View 4 Replies

AJAX :: Checkbox In Reorderlist Can't Be Checked In IE?

Feb 6, 2010

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">
<ContentTemplate>
<table>
<tr>
<td colspan="2">

[Code]....

View 2 Replies

AJAX :: ReorderList Can't Be Saved To Database?

Jan 16, 2010

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

[Code]....

View 2 Replies

AJAX :: DataList Not Being Refreshed When ReOrderList Changes?

Aug 8, 2010

[Code]....

DataList Not Being Refreshed When ReOrderList Changes


View 1 Replies

AJAX :: How To Update Reorderlist When Using DataSource Instead Of DataSourceID

Jan 27, 2010

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

AJAX :: ReorderList Not Triggering Update Oracle?

Nov 15, 2010

I have been strugling with this for a while and not gettting anywhere fast.I am trying to make a reorderable list using the AjaxtoolKit control ReorderList.It compiles fine and the select works, the problems come with the updates. When I try and reorder I get the following javascript warning: "Reorder failed, see details below.Couldn't find sort field 'ItemPos' in bound data."On investigating I can see that the update command it not being triggered. I can even remove it from the file code and nothing changes.So anyone any ideas what I do? I feel I need a handler in place but I cant seem to get that one figured out.The base code was taken from the toolkit examples and there is no code behind.Code Below:::::

[Code]....

View 4 Replies

AJAX :: Reorderlist And The Horrible 'compatibility Mode' In IE8?

Jan 18, 2011

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.

View 2 Replies







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