Click or drag to resize
KaxListBoxTransfer Method (IListKaxListBoxItem, KaxListBox, KaxListBox)
Transfers the specified list of items from the source to the destination listbox. Fires the Transferring and Transferred events.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public virtual void Transfer(
	IList<KaxListBoxItem> itemsToTransfer,
	KaxListBox sourceListBox,
	KaxListBox destinationListBox
)

Parameters

itemsToTransfer
Type: System.Collections.GenericIListKaxListBoxItem
The items to transfer.
sourceListBox
Type: Kettic.AspNet.ControlsKaxListBox
The source list box.
destinationListBox
Type: Kettic.AspNet.ControlsKaxListBox
The destination list box.
Remarks
Always call the Transfer method of the KaxListBox whose TransferToID property is set! The Transfer method updates the underlying datasource if the AllowAutomaticUpdates is set to true.
Examples
KaxListBox1.TransferToID = "KaxListBox2";
//Transfers all items of KaxListBox1 to KaxListBox2
KaxListBox1.Transfer(KaxListBox1.Items, KaxListBox1, KaxListBox2); 
//Transfers all items of KaxListBox2 to KaxListBox1. Notice that we do not use KaxListBox2.Transfer
KaxListBox1.Transfer(KaxListBox2.Items, KaxListBox2, KaxListBox1);
See Also