Hi,
I have two listboxes, On my left side of list boxes, I have some items, when i transfer the items to the right side listbox, I add two checkboxes before those items. Everything works fine when the transferMode = move, but when I changed the transferMode=Copy then when I move the item from the left listbox to the right listbox, the checkboxes appear in the right list box, but items don't appear.
I am not sure what am I doing wrong. below is my code
My code behind looks like this
I have two listboxes, On my left side of list boxes, I have some items, when i transfer the items to the right side listbox, I add two checkboxes before those items. Everything works fine when the transferMode = move, but when I changed the transferMode=Copy then when I move the item from the left listbox to the right listbox, the checkboxes appear in the right list box, but items don't appear.
I am not sure what am I doing wrong. below is my code
<td style="width:"10%" > ag: <br /> <telerik:RadListBox runat="server" ID="RadListBox_Unselectedag" AutoPostBack="false" Width="120px" Height="200px" TransferToID="RadListBox_selectedag" AllowTransfer="true" TransferMode="Copy" AutoPostBackOnTransfer="true" SelectionMode="Multiple" AllowDelete="false" AllowReorder="false" ontransferred="RadListBox_Unselectedag_Transferred" > </telerik:RadListBox> </td> <td style="width:"2%">aselected <br /> <telerik:RadListBox runat="server" ID="RadListBox_selectedag" AllowDelete="true" AllowReorder="false" AutoPostBack="false" SelectionMode="Multiple" Width="140px" Height="200px" > <ItemTemplate> <asp:CheckBox ID="chkAD" runat="server" /> <asp:CheckBox ID="chkAS" runat="server" /> <asp:Label ID="lblagSelected" runat="server" Text='<%# DataBinder.Eval(Container,"Text") %>'></asp:Label> </ItemTemplate> </telerik:RadListBox> </td> <td> My code behind looks like this
protected void RadListBox_Unselectedag_Transferred(object sender, RadListBoxTransferredEventArgs e) { foreach (RadListBoxItem item in e.Items) { item.DataBind(); } }