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)
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:
We get this Warning in the Event Log from time to time. It seems to crasch our web so an iisreset is required.I have checked the version of AjaxControlToolkit that we use - and it is the version it says it needs. So what should I do?
Exception information: Exception type: InvalidOperationException Exception message: The requested script resource 'Common.Common.js' requires version 'AjaxControlToolkit, Version=4.1.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' of the ASP.NET AJAX Framework. To use this resource, make sure that the application references version 'AjaxControlToolkit, Version=4.1.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'.
Looks like there aren't a lot of users using the Ajax Control Toolkit 40412 and the Microsoft Microsoft Ajax CDN because I can't find any information on how to get the MicrosoftAjax.js and MicrosoftAjaxWebForms.js files to be linked to the CDN.
First issue:Ajax Control Toolkit 40412 seems to be using its own customized version of MicrosoftAjax.js and MicrosoftAjaxWebForms.js. Toolkit's version
is 4.1.40412.2, while the version that come with ASP.NET Ajax 4 is 4.0.30205.0. By default when using the toolkit the version is swapped to the toolkit's version. While the ASP.NET Ajax 4 version is hosted on the CDN (http://www.asp.net/ajaxlibrary/CDNAjax4.ashx) the version with the Toolkit is not (http://www.asp.net/ajaxlibrary/CDNACT40412.ashx), which doesn't make any sense because all the other files are hosted. Therefore, a CDN version of MicrosoftAjax.js and MicrosoftAjaxWebForms.js is UNAVAILABLE when using the Ajax Control Toolkit 40412.
Second Issue:Why not use the ASP.NET Ajax 4 version of the the MicrosoftAjax.js, after all its version 4. The version can be swapped out by adding a Script Resource Mapping to the Application_Start event in the Global.asax.cs.
However, when the version is changed to the ASP.NET Ajax 4 version the following error is given:
"AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll."
It doesn't matter if you are using the ToolkitScriptManager or ScriptManager you will always get this error when not using the version of MicrosoftAjax.js that comes with the AjaxControlToolkit.So how can one use the Microsoft Ajax CDN for the MicrosoftAjax.js and MicrosoftAjaxWebForms.js with ASP.NET Ajax 4 & Ajax Control Toolkit 40412?
One other note. The new attribute EnableCdn="true" is of course rendered completely useless when using the Ajax Control Toolkit because the idea is that the MicrosoftAjax.js and MicrosoftAjaxWebForms.js files would then be linked by references to the CDN. This does not happen with the Toolkit because as described the Toolkit replaces the those files with its own. I was very surprised to find out that all my excitement about having CDN support was made void when I included the Toolkit in my project.
Im having problem with the newest release of Ajax Control Toolkit under .NET 3.5
I downloaded source code from AjaxControlToolkit.Source.zip and compiled it under .NET 3.5
Then i made simple web application:
[Code]....
It failed to run with my compiled version of ACT, im having an error:"Line: 160 Error: '$common' is null or not an object"
in AsyncFileUpload.AsyncFileUpload.debug.js and then:
"Line: 22 Error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll." in
AsyncFileUpload.AsyncFileUpload.debug.js" in Common.Common.debug.js
I tried to use precompiled binaries of ACT : AjaxControlToolkit.Binary.NET35.zip and its working!
There is difference in referenced scripts between my dll and AjaxControlToolkit.Binary.NET35.zip
In my version, the headers of MicrosoftAjax.debug.js and MicrosoftAjaxWebForms.debug.js are:
// Name: MicrosoftAjax.debug.js // Assembly: System.Web.Extensions // Version: 3.5.0.0 // FileVersion: 3.5.30729.4926 //----------------------------------------------------------------------- // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------- // MicrosoftAjax.js // Microsoft AJAX Framework.
// Name: MicrosoftAjaxWebForms.debug.js // Assembly: System.Web.Extensions // Version: 3.5.0.0 // FileVersion: 3.5.30729.4926 //----------------------------------------------------------------------- // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------- // MicrosoftAjaxWebForms.js // Microsoft AJAX ASP.NET WebForms Framework.
And when im using version from AjaxControlToolkit.Binary.NET35.zip, they are:
I have not compared the rest of scripts, but in those 2 scripts: assembly, version and author does not match between my and precompiled dll. ToolkitScriptManager is trying to load microsoft scripts, but it should load those from CodePlex.In solution downloaded from AjaxControlToolkit.Source.zip, there are 2 projects: MicrosoftAjax and MicrosoftAjax.Extened, i think ToolkitScriptManager should take scripts from them. Maybe im compiling it in a wrong way? (I changed target framework in AjaxControlToolkit project to .NET 3.5 and also tried to change it in 2 projects mentioned above, with no effect).
I'm developing on an existing software (PLM) with visual studio 2008, a new ascx page.
Microsoft .NET Framework use by the soft is : 2.0.50727.1433 and ASP.NET version use by the soft is : 2.0.50727.1433 too.
On my server, I've installed Framework 3.5 and I use Ajax Control tool kit version 3.5.40412.0.
I've got a similar problem than other people, but I can't find any solution.I've got the Error message when I want to load a page : CS1705: Assembly AjaxControlKit version 3.5.40412.0 [...] use System.Web.extensions Version 3.5.0.0 [...] which have a higher version than Assembly System.Web.Extensions Version 1.0.61025.0
On my server in folder C:windowsAssembly, I have System.Web.extensions Version 3.5.0.0 and System.Web.Extensions Version 1.0.61025.0 so in theory it can work no ?In my webconfig file I try to add this code :
now i receive this error (sorry, it is in italian) :
L'assembly 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' non contiene una risorsa Web con nome 'AjaxControlToolkit.Common.Common.js'. Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere l'analisi dello stack. Dettagli eccezione: System.InvalidOperationException: L'assembly 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' non contiene una risorsa Web con nome 'AjaxControlToolkit.Common.Common.js'.
I am currently using some $common functions, like getContentSize() and so on.
Looking at the source code it seems to me that all the paths have been changed, but i cannot understand the right namespace to use with the latest release.
Am trying to get a working enity model with foreign keys working but have run into a problem. I have imported 3 tables with content and some data.Lets call these tables geo_countries, geo_counties, geo_municipalities and the FK are:1. geo_county have a column country_id wich corresponds to country_id in geo_country 2. geo_municipality have a column county_id wich correspond to the county_id in geo_county.The problem i have is when i try to get correspondig child items with the following code i run into trouble:
[Code]....
The problem above is that 'test' generates results but not 'test2', wich never return anything. Am i not supposed to be able to do it like i do in 'test2'? I earlier tried to add a child object by replacing ToList() with Add() and that worked. But i cant seem to get anything out of it.
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 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.
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
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:
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
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.
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?
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:::::