Link to home
Start Free TrialLog in
Avatar of Vincent Stack
Vincent StackFlag for Qatar

asked on

How to set ajax reorderlist to edit mode

I have a reorder list but I want to add a link button to change the mode to Edit.  How do i do this?

I've tried this sub but I can't get the event to fire.

  Protected Sub ReorderList1_EditCommand(ByVal sender As Object, ByVal e As ReorderListCommandEventArgs) Handles ReorderList1.EditCommand
               
        If e.CommandName = "Edit" Then
            Response.Write("Im here")
       End If
       
    End Sub

reorderlist code:

  <cc1:ReorderList ID="ReorderList1" runat="server"
             AllowReorder="true" CssClass="ReOrderControlStyle" DataKeyField="CategoryID"
              DataSourceID="SqlDataSource1" DragHandleAlignment="left"
                    ItemInsertLocation="beginning" SortOrderField="Order" Height="97px"
                    Width="153px" PostBackOnReorder="True">
         
          <ItemTemplate>
          <asp:Label ID="lblCategoryName" runat="server" Text='<%# Eval("CategoryName") %>' />
          <asp:LinkButton ID="linkButton1" runat="server" CommandName="Edit"  >Edit</asp:LinkButton>
         
         
          </ItemTemplate>
         
         
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("CatgoryName") %>'></asp:TextBox>
                    </EditItemTemplate>
         
         
            </cc1:ReorderList>
ASKER CERTIFIED SOLUTION
Avatar of TornadoV
TornadoV
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You are welcome, and may I ask why did you give me B?