Hey i ahve the same problem. can you look into my QQ.i copied below.
I got a QQ on AJAX Reorderlist Itemtemplate.
I am using two reorderlist controls with in a page. Reorderlis1 contains pending records. I just load the pending records. the records can be moved from Reorderlist 1 to Reordrlist 2 with add button. In this table I am not doing reordering .
Reorderlist2 contains Queued records. In this I will do the reordering, the records which are there in Reorderlist 2 , transfer the records into the tasktable. In this table I have the cancel button also. If user don’t want to update some records they can moved back those records from Recorder list 2 to Recorderlist 1. I am done with this part. My 1st QQ:
Now I added Dropdownlist control to the Reorderlist 1 Item tamplate. Item template dropddownlist is my user control.My dropdown list contains the list of years. So I am calling my Usercontrol method with the Itrmtamplate dropdownlist ID. Here I got below error. 'ddlbeginyod1' is my Reorderlist Item template dropdownlist ID Text. Why??
Error:The name 'ddlbeginyod1' does not exist in the current context.
I tried adding the dropdownlist in insertitem template also. There also I got the same issue.
I never worked with Ajax Reorderlist control. I am very confused with this control.
I can add Dropdown list to the Reordrlist Itemtamplate right ? If I can add the dropdownlist into the item template I have 2nd QQ?
• If I can load the dropdownlist. For each row I will be having the year dropdownlist right. When user selects first row and moved from the reorderlist1 to reorderlist 2 with add button. he has to select the year of that row.
I need to send year value by each row to task table. Can I do that with reorderlist item template.How can I store the year value.If so, how can I do that? Please any one know the answer ,,please suggest me … Its really important to me.
I copying my 1st reorderlist design page below,
<ajax:ReorderList runat="server" CssClass="ReOrderList" ID="rolpendsearch" Width="370" ToolTip="Records To be imported"
AllowReorder="true" PostBackOnReorder="true" DataKeyField="InputFileID" ItemInsertLocation="End" EnableViewState="true">
<ItemTemplate>
<div class="ItemTemplate" align="right">
<td> <users:DeathYearDropdownList runat="server" ID="ddlbeginyod1" OnSelectedIndexChanged="ddlbeginyod1_OnSelectedIndexChanged" /> </td>
<td><users:DeathYearDropdownList runat="server" ID="ddlendyod1" OnSelectedIndexChanged="ddlendyod1_OnSelectedIndexChanged" /> </td> <td> <asp:Button runat="server" ID="btnsearch" CommandArgument='<%#Eval("InputFileID")%>' Visible=true
CssClass="button" ToolTip="Add To Search Queue" Text="To Search Queue" OnClick="btnsearch_Click" /></td></div>
</ItemTemplate>
<InsertItemTemplate>
<div class="ItemTemplate" align="right">
<td> <users:DeathYearDropdownList runat="server" ID="ddlbeginyod1" OnSelectedIndexChanged="ddlbeginyod1_OnSelectedIndexChanged" /> </td>
</div></InsertItemTemplate>
<EmptyListTemplate>
<asp:Panel ID="Panel2" runat="server" CssClass="ItemTemplate" Width="330px" >
<table width="330Px" title="No Records Queued to Add." summary="No Records Queued to Add.">
<tr title="No Records Queued to Add."> <th title="No Records Queued to Add.">
<th title="No Records Queued to Add."><b>No Records Queued to Add.</b></th>
</tr>
</table>
</asp:Panel>
</EmptyListTemplate>
<ReorderTemplate>
<asp:Panel ID="Panel1" runat="server" Width="400px" CssClass="ReorderTemplate" />
</ReorderTemplate>
<DragHandleTemplate>
<table class="DragHandleTemplate" style="width:350px;text-align:left;" align="left"
summary="<%# GetToolTip1("FileName:" +Eval("InputFileName").ToString() )%>"
title="<%# GetToolTip1("FileName:" +Eval("InputFileName").ToString())%>">
<tr>
<td><asp:Label ToolTip='<%# GetToolTip1("FileName:" +Eval("InputFileName").ToString())%>' runat="server" ID="fname" Text='<%#Eval("CustName")%>' /></td>
<td><asp:Label ToolTip= "Records" runat="server" ID="Rowcount" Text='<%# "Records:" +Eval("IFRowCt")%>' /></td>
</tr>
</table>
</DragHandleTemplate>
</ajax:ReorderList>