Ajax reorder list not draggable

Last post 11-08-2009 8:01 AM by shibbard. 1 replies.

Sort Posts:

  • Ajax reorder list not draggable

    11-07-2009, 4:20 PM
    • Member
      point Member
    • shibbard
    • Member since 03-08-2007, 6:03 AM
    • Posts 2

    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.



  • Re: Ajax reorder list not draggable

    11-08-2009, 8:01 AM
    Answer
    • Member
      point Member
    • shibbard
    • Member since 03-08-2007, 6:03 AM
    • Posts 2

    Fixed. Needed to add this to web.config:


        <httpHandlers>
    
          <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
          
        </httpHandlers>


Page 1 of 1 (2 items)