Click or drag to resize
KaxListBoxReorderToIndex Method (IListKaxListBoxItem, Int32)
Reorders the specified items to the specified index. Fires the Reordering and Reordered 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 ReorderToIndex(
	IList<KaxListBoxItem> items,
	int targetIndex
)

Parameters

items
Type: System.Collections.GenericIListKaxListBoxItem
The items.
targetIndex
Type: SystemInt32
The target index.
Remarks
The ReorderToIndex method updates the underlying datasource if the AllowAutomaticUpdates is set to true.
Examples
//Move all selected items (first and second) to an index below them.
KaxListBox1.ReorderToIndex(KaxListBox1.SelectedItems, 3);
See Also