Hi,
I have been trying to get a basic reorderlist working. I have tried a demo version in my browser so its not a browser problem.
I am on asp.net 2.0 and have installed the AjaxControlToolkit and the DLL file is in the Bin folder.
However when I run the page - I get the list I expect but nothing is draggable, I cannot see what I am getting wrong. It will be part of a more complex page but I have taken it out into a simple page to firgure out what is wrong.
Anyone have any ideas what I may have wrong here?
<form id="form1" runat="server">
<div>
<asp:SqlDataSource ID="SqlDataSource_LensCatList2" runat="server"
ConnectionString="<%$ ConnectionStrings:VS_ConnectionString %>" OldValuesParameterFormatString="original_{0}"
ProviderName="<%$ ConnectionStrings:VS_ConnectionString.ProviderName %>"
DeleteCommand="DELETE FROM [Specs_LensDetailsTbl] WHERE [DBID] = ?"
SelectCommand="SELECT Specs_LensDetailsTbl.DBID, Specs_LensDetailsTbl.LensName, Specs_LensCatLookupTbl.OrderNum, Specs_LensCatLookupTbl.Active FROM Specs_LensDetailsTbl LEFT OUTER JOIN Specs_LensCatLookupTbl ON Specs_LensDetailsTbl.DBID = Specs_LensCatLookupTbl.LensDBID WHERE (Specs_LensCatLookupTbl.CatDBID = 1) ORDER BY Specs_LensCatLookupTbl.OrderNum"
UpdateCommand="UPDATE Specs_LensDetailsTbl SET OrderNum=@OrderNum WHERE [DBID]=@original_id">
<UpdateParameters>
<asp:Parameter Name="OrderNum" Type="Int32" />
<asp:Parameter Name="original_id" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>
<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true">
</cc1:ToolkitScriptManager>
<cc1:ReorderList ID="ReorderList1" runat="server" AllowReorder="True"
DataSourceID="SqlDataSource_LensCatList2" PostBackOnReorder="False"
DataKeyField="DBID" SortOrderField="OrderNum">
<DragHandleTemplate>
<div class="DragHandleClass">
</div>
</DragHandleTemplate>
<ItemTemplate>
<asp:Label ID="LensNameLabel" runat="server" Text='<%# Eval("LensName") %>' />
</ItemTemplate>
</cc1:ReorderList>
</div>
</form> Any help appreciated,
Simon.