ListTransfer
The ListTransfer control simplifies the transfer of ListItems between two
ListControls. With this control you can easily create double listboxes or use several in combination.
Features
- All actions can be performed either server side with postbacks or client side without postbacks.
- ListItems can be moved or copied from the source ListControl of a transfer operation.
- Duplicates can be allowed or prevented in the destination ListControl of a transfer operation.
- ListItems can be moved up or down, individually selected or multiple selections.
- Supports bubble events for reduced coding.
- This is an aspect oriented control, not a composite control, which has a few advantages:
- You have full control of the layout for your controls.
- It means you have the ability not only to use the regular ListControls you already know (ListBox, DropDownList, CheckBoxList, and RadioButtonList), but also any control that implements the ListControl Interface.
Code Example
<%@ Register TagPrefix="fluent" Namespace="Fluent" Assembly="Fluent.ListTransfer" %>
...
<fluent:ListTransfer Runat="server" ID="ListTransferEmployees"
ListControlTo="ListBoxProjectMembers"
ListControlFrom="ListBoxEmployees"
EnableClientSide="True"
>
<asp:ListBox ID="ListBoxEmployees" Runat="server"
SelectionMode="Multiple"
CssClass="listbox"
/>
...
<asp:LinkButton Runat="server" CommandName="MoveUpListControlFrom" ><img border="0" src="images/up.gif"></asp:LinkButton>
<asp:LinkButton Runat="server" CommandName="MoveDownListControlFrom"><img border="0" src="images/down.gif"></asp:LinkButton>
<asp:LinkButton Runat="server" CommandName="MoveSelected"><img border="0" src="images/right.gif"></asp:LinkButton>
<asp:LinkButton Runat="server" CommandName="MoveBackSelected"><img border="0" src="images/left.gif"></asp:LinkButton>
<asp:LinkButton Runat="server" CommandName="MoveAll"><img border="0" src="images/rightAll.gif"></asp:LinkButton>
<asp:LinkButton Runat="server" CommandName="MoveBackAll"><img border="0" src="images/leftAll.gif"></asp:LinkButton>
...
<asp:ListBox ID="ListBoxProjectMembers" Runat="server"
SelectionMode="Multiple"
CssClass="listbox"
/>
...
<asp:LinkButton Runat="server" CommandName="MoveUpListControlTo" ><img border="0" src="images/up.gif"></asp:LinkButton>
<asp:LinkButton Runat="server" CommandName="MoveDownListControlTo"><img border="0" src="images/down.gif"></asp:LinkButton>
Copyright © 2002-2003 Fluent Consulting. All rights reserved.