Product Review: List Transfer Control by Fluent
I needed a picklist implementation that involved a Listbox
on the left and a Listbox on the right. With buttons in the
middle to move items from the left to the right to the left,
up and down within the Listbox, etc. I've programmed similar
implementations, including
my tree select demo. But my client had an existing control from
Fluent Consulting.
The control is the
List Transfer
control. I was amazed at how easily I could implement the
code.
In the code in front, simply register the
control:
<%@ Register
Assembly="Fluent.ListTransfer" Namespace="Fluent"
TagPrefix="cc1" %>
<cc1:ListTransfer
Runat="server" ID="lstClientTransferCodes"
ListControlFrom="lstAvailable" ListControlTo="lstSelected"
EnableClientSide="true" />
And in the code
behind, simply add "onclick" attributes to the buttons:
ibtnMoveRight.Attributes.Add("onclick",
Me.lstClientTransferCodes.ClientMoveSelected)
ibtnRightMoveDown.Attributes.Add("onclick",
Me.lstClientTransferCodes.ClientMoveDownListControlTo)
ibtnRightMoveUp.Attributes.Add("onclick",
Me.lstClientTransferCodes.ClientMoveUpListControlTo)
ibtnMoveLeft.Attributes.Add("onclick",
Me.lstClientTransferCodes.ClientMoveBackSelected)
The rest, setting up the lists, binding the
data, etc., didn't need to change at all.
All I
had to do was add those 6 lines of code and boom, it was
done!
I highly recommend this product!
I used this for client side transfer of data,
but it also supports server side.
View the demo here!
They describe the ListTransfer as "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."
I decided to see what other controls they have
available, and noticed a Multi-LineTextboxValidator. This
was of interest to me since I wrote an article in 2000 on
the
Javascript Dynamic Text Area Counter
which I used extensively on my ASP Classic web sites.
However, I'm all for upgrading to a control that can be
easily plunked into my ASP.NET pages.
Here are
the remainder of their controls:
- The MultiLineTextBoxValidator is a validator control which will restrict the length of MultiLine TextBox controls.
- Fluent.ControlFocus This is a very simple non-visual web control which will automatically set focus to a given WebControl after the page has completed loading. This may be useful in situations such as page validation, for example, if you want the cursor to be positioned in a given field which needs correction after a validation failure on postback.
- The DataGridAdapter control simplifies the sorting and paging of DataGrid controls with various data sources.
- The LogicTemplate controls simplify conditional presentation logic. These controls allow you to dynamically control the contents of templates in repeater controls (DataGrid, DataRepeater, etc). LogicTemplates provide easier, cleaner code than using OnItemCreated events or other code-behind functions.
Nannette Thacker