Click or drag to resize
KaxListBox Class
KaxListBox is a flexible listbox control with the some unique features: Rich and highly customizable UI for item transfer, delete and reordering. Drag and drop support. Items can be reordered or transferred via drag and drop. Automatic update of the underlying data source during reorder, transfer or delete. Checkbox support All features supported by the built-in ListBox control.
Inheritance Hierarchy
SystemObject
  System.Web.UIControl
    System.Web.UI.WebControlsWebControl
      System.Web.UI.WebControlsBaseDataBoundControl
        System.Web.UI.WebControlsDataBoundControl
          KaxDataBoundControl
            Kettic.AspNet.ControlsControlItemContainer
              Kettic.AspNet.ControlsKaxListBox

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public class KaxListBox : ControlItemContainer, IPostBackEventHandler, 
	ILocalizableControl

The KaxListBox type exposes the following members.

Constructors
  NameDescription
Public methodKaxListBox
Top
Methods
  NameDescription
Public methodClearChecked
Clears the checked items. The Checked property of all items is set to false.
Public methodClearSelection
Clears the selection. The Selected property of all items is set to false.
Public methodDelete(KaxListBoxItem)
Deletes the specified item. Fires the Deleting and Deleted events.
Public methodCode exampleDelete(IListKaxListBoxItem)
Deletes the specified list of items. Fires the Deleting and Deleted events.
Public methodCode exampleFindItem
Finds the first item for which the specified predicate returns true.
Public methodFindItemByText
Finds the first item whose Text property is the same as the specified text.
Public methodFindItemByValue
Finds the first item whose Value property is the same as the specified value.
Public methodFindItemIndexByValue(String)
Finds the index of the item whose Value property is the same as the specified value.
Public methodFindItemIndexByValue(String, Boolean)
Finds the index of the item whose Value property is the same as the specified value.
Public methodGetCheckedIndices
Gets an array containing the indices of the currently checked items in the KaxListBox control.
Public methodGetSelectedIndices
Gets an array containing the indices of the currently selected items in the KaxListBox control.
Public methodLoadContentFile
Populates the KaxListBox control from an XML file
Public methodCode exampleReorder(Int32, Int32)
Moves the item at old index to new index by calculating the offset. Fires the Reordering and Reordered events.
Public methodCode exampleReorder(IListKaxListBoxItem, Int32)
Reorders the specified items with the specified offset. Fires the Reordering and Reordered events.
Public methodCode exampleReorderToIndex(Int32, Int32)
Moves the item at old index to new index. Fires the Reordering and Reordered events.
Public methodCode exampleReorderToIndex(IListKaxListBoxItem, Int32)
Reorders the specified items to the specified index. Fires the Reordering and Reordered events.
Public methodCode exampleSortItems
Sorts the items in the KaxListBox.
Public methodCode exampleTransfer(KaxListBoxItem, KaxListBox, KaxListBox)
Transfers the specified item from the source list box to the destination listbox. Fires the Transferring and Transferred events.
Public methodCode exampleTransfer(IListKaxListBoxItem, KaxListBox, KaxListBox)
Transfers the specified list of items from the source to the destination listbox. Fires the Transferring and Transferred events.
Top
Properties
  NameDescription
Public propertyAllowAutomaticUpdates
Gets or sets a value indicating whether to update the underlying datasource after postback caused by reorder, delete or transfer.
Public propertyAllowDelete
Gets or sets a value indicating whether KaxListBox displays the delte button.
Public propertyAllowReorder
Gets or sets a value indicating whether KaxListBox displays the reordering buttons.
Public propertyAllowTransfer
Gets or sets a value indicating whether KaxListBox displays the transfer buttons.
Public propertyAllowTransferDuplicates
Gets or sets a value indicating whether the user can transfer the same item more than once.
Public propertyAllowTransferOnDoubleClick
Gets or sets a value indicating whether the double click on a item causes transfer
Public propertyAutoPostBack
Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the KaxListBox selection.
Public propertyAutoPostBackOnDelete
Gets or sets a value indicating whether KaxListBox should post back after delete.
Public propertyAutoPostBackOnReorder
Gets or sets a value indicating whether KaxListBox should post back after reorder.
Public propertyAutoPostBackOnTransfer
Gets or sets a value indicating whether KaxListBox should post back after transfer.
Public propertyButtonSettings
Used to customize the appearance and position of the buttons displayed by KaxListBox.
Public propertyCheckBoxes
When set to true displays a checkbox next to each item.
Public propertyCheckedItems
Gets the currently checked items in the ListBox.
Public propertyClientChanges
Gets a list of all client-side changes (adding an Item, removing an Item, changing an Item's property) which have occurred.
Public propertyControls (Overrides ControlControls.)
Public propertyCulture
Public propertyDataKeyField
Gets or sets the key field in the data source. Usually this is the database column which denotes the primary key.
Public propertyDataKeys
Gets a DataKeyCollection object that stores the key values of each record.
Public propertyDataSortField
Gets or sets the sort field in the data source. The sort field must be of numeric type.
Public propertyEmptyMessage
Public propertyEmptyMessageTemplate
Gets or sets the ITemplate that defines the KaxListBox empty message template.
Public propertyEnableDragAndDrop
When set to true enables Drag-and-drop functionality
Public propertyEnableMarkMatches
Public propertyFooter
Get a footer of KaxListBox.
Public propertyFooterTemplate
Gets or sets the ITemplate that defines the KaxListBox footer template.
Public propertyHeader
Get a header of KaxListBox.
Public propertyHeaderTemplate
Gets or sets the ITemplate that defines the KaxListBox header template.
Public propertyItems
Gets the items of the KaxListBox control.
Public propertyItemTemplate
Gets or sets the ITemplate that defines how items in the KaxListBox control are displayed.
Public propertyLocalization
Public propertyCode exampleOnClientContextMenu
Gets or sets a value indicating the client-side event handler that is called before the browser context panel shows (after right-clicking an item).
Public propertyOnClientDeleted
Gets or sets the name of the JavaScript function which handles the deleted client-side event.
Public propertyCode exampleOnClientDeleting
Gets or sets the name of the JavaScript function which handles the deleting client-side event.
Public propertyOnClientDragging
Gets or sets the name of the JavaScript function which handles the itemDragging client-side event.
Public propertyCode exampleOnClientDragStart
Gets or sets the name of the JavaScript function which handles the itemDragStart client-side event.
Public propertyOnClientDropped
Gets or sets the name of the JavaScript function which handles the itemDropped client-side event.
Public propertyOnClientDropping
Gets or sets the name of the JavaScript function which handles the itemDropping client-side event.
Public propertyOnClientItemChecked
Gets or sets the name of the JavaScript function which handles the itemChecked client-side event.
Public propertyCode exampleOnClientItemChecking
Gets or sets the name of the JavaScript function which handles the itemChecking client-side event.
Public propertyOnClientItemDoubleClicked
Public propertyOnClientItemDoubleClicking
Public propertyOnClientLoad
Gets or sets the name of the JavaScript function which handles the load client-side event.
Public propertyOnClientMouseOut
Gets or sets the name of the JavaScript function which handles the mouseOut client-side event.
Public propertyOnClientMouseOver
Gets or sets the name of the JavaScript function which handles the mouseOver client-side event.
Public propertyOnClientReordered
Gets or sets the name of the JavaScript function which handles the reordered client-side event.
Public propertyCode exampleOnClientReordering
Gets or sets the name of the JavaScript function which handles the reordering client-side event.
Public propertyOnClientSelectedIndexChanged
Gets or sets the name of the JavaScript function which handles the selectedIndexChanged client-side event.
Public propertyCode exampleOnClientSelectedIndexChanging
Gets or sets the name of the JavaScript function which handles the selectedIndexChanging client-side event.
Public propertyOnClientTransferred
Gets or sets the name of the JavaScript function which handles the transferred client-side event.
Public propertyCode exampleOnClientTransferring
Gets or sets the name of the JavaScript function which handles the transferring client-side event.
Public propertyPersistClientChanges
Gets or sets a value indicating whether KaxListBox should persist the changes that occurred client-side (reorder, transfer, delete) after postback.
Public propertySelectedIndex
Gets or sets the selected index of the KaxListBox control.
Public propertySelectedItem
Gets the currently selected Item in the ListBox.
Public propertySelectedItems
Gets the currently selected items in the ListBox.
Public propertySelectedValue
Gets the Value of the selected item. When set selects the item with matching Value property.
Public propertySelectionMode
Gets or sets the Selection Mode of the KaxListBox.
Public propertyCode exampleSort
Automatically sorts items alphabetically (based on the Text property) in ascending or descending order.
Public propertyCode exampleSortCaseSensitive
Gets/sets whether the sorting will be case-sensitive or not. By default is set to true.
Public propertyTransferMode
Gets or sets the transfer mode used for transfer operations.
Public propertyTransferToID
Gets or sets the ID of the KaxListBox which the current listbox should transfer to. Set the TransferToID property only of one of the two listboxes which will transfer items between each other.
Public propertyTransferToListBox
Gets the KaxListBox which the current list box is configured to transfer to via the TransferToID property.
Top
Events
  NameDescription
Public eventDeleted
Occurs when items are deleted.
Public eventDeleting
Occurs when items are deleted.
Public eventDropped
Occurs after drag and drop
Public eventDropping
Occurs before drag and drop
Public eventInserted
Occurs when item is inserted.
Public eventInserting
Occurs when item is inserted. Can be cancelled by setting the Cancel property to true.
Public eventItemCheck
Occurs when an item is checked
Public eventItemCreated
Occurs when item is created.
Public eventCode exampleItemDataBound
Occurs when item is data bound.
Public eventReordered
Occurs when item is reordered.
Public eventReordering
Occurs when item is reordered. Can be cancelled by setting the Cancel property to true.
Public eventSelectedIndexChanged
Occurs when the selected index has changed.
Public eventCode exampleTemplateNeeded
Occurs before template is being applied to the item.
Public eventTextChanged
Occurs when text was changed.
Public eventTransferred
Occurs when item is transferred.
Public eventTransferring
Occurs when item is transferred. Can be cancelled by setting the Cancel property to true.
Public eventUpdated
Occurs when items's sort order is updated during the reordering.
Public eventUpdating
Occurs when items's sort order is updated during the reordering.
Top
See Also