KoolListBox Class [PHP]

Summary

Properties Description
AllowHover Get or set whether item hovering is allowed.
AllowMultiSelect Get or set whether item multi-selecting is allowed.
AllowReorder Get or set whether item ordering is allowed.
AllowSelect Get or set whether item selecting is allowed.
AllowTransfer Get or set whether item transferring is allowed.
AllowTransferOnDoubleClick Get or set whether item transferring is allowed when user do double clicks.
AutoPostBackOnDelete Get or set whether listbox will do postback after items are deleted.
AutoPostBackOnReorder Get or set whether listbox will do postback after items are reordered.
AutoPostBackOnTransfer Get or set whether listbox will do postback after items are tranferred.
CheckedItems Contains the list of checked items.
ClientEvents Get or set the client-side event.
EventHandler Get or set the client-side event.
Height Get or set the height of KoolListBox.
id Get or set id of KoolListBox
Items Contains the list of all items.
ItemTemplate Get or set the template for listbox item.
scriptFolder Get or set the path to folder which contains KoolListBox script.
SelectedItems Contains the list of selected items.
styleFolder Get or set folder which contain css style for KoolListBox
TransferMode Get or set whether item will be copied or moved when transferred.
TransferToId Get or set the id of destination listbox.
UpdatePanel Set the id of updatepanel that contains this listbox.
UseCheckBoxes Get or set whether checkbox is used.
Width Get or set the width of KoolListBox.
Methods Description
AddItem Add listbox item.
ClearAll Clear all items.
Init Initiate listbox.
Render Render the KoolListBox
RegisterScript Return html to register js library for KoolListBox.
RegisterCSS Return html to register CSS for KoolListBox
RenderListBox Return html content of KoolListBox body
StartupScript Return js code to inititate KoolListBox

Properties Detail

AllowHoverTop

bool AllowHover

Get or set whether item hovering is allowed.

Default value : true

Show/Hide Code

Supported from version: 1.0.0.0

AllowMultiSelectTop

bool AllowMultiSelect

Get or set whether item multi-selecting is allowed.

Default value : false

Show/Hide Code

Supported from version: 1.0.0.0

AllowReorderTop

bool AllowReorder

Get or set whether item ordering is allowed. By setting this to true, user will be able to move item up and down to reoder.

Show/Hide Code

Supported from version: 1.0.0.0

AllowSelectTop

bool AllowSelect

Get or set whether item selecting is allowed.

Default value : true

Show/Hide Code

Supported from version: 1.0.0.0

AllowTransferTop

bool AllowTransfer

Get or set whether item transferring is allowed.

Show/Hide Code

Supported from version: 1.0.0.0

AllowTransferOnDoubleClickTop

bool AllowTransferOnDoubleClick

Get or set whether item transferring is allowed when user do double clicks.

Show/Hide Code

Supported from version: 1.0.0.0

AutoPostBackOnDeleteTop

bool AutoPostBackOnDelete

Get or set whether listbox will do postback after items are deleted.

Show/Hide Code

Supported from version: 1.0.0.0

AutoPostBackOnReorderTop

bool AutoPostBackOnReorder

Get or set whether listbox will do postback after items are reordered.

Show/Hide Code

Supported from version: 1.0.0.0

AutoPostBackOnTransferTop

bool AutoPostBackOnTransfer

Get or set whether listbox will do postback after items are tranferred.

Show/Hide Code

Supported from version: 1.0.0.0

CheckedItemsTop

string CheckedItems

Contains the list of checked items. This list should be accessed after listbox is initiated.

Show/Hide Code

Supported from version: 1.0.0.0

ClientEventsTop

array ClientEvents

Get or set the client-side event.

Show/Hide Code

Supported from version: 1.0.0.0

EventHandlerTop

array EventHandler

Get or set the client-side event.

Show/Hide Code

Supported from version: 1.0.0.0

HeightTop

string Height

Get or set the height of KoolListBox.

Show/Hide Code

Supported from version: 1.0.0.0

idTop

string id

Get or set the id for KoolListBox. This id will be use as variable name of KoolListBox at client-side.

Show/Hide Code

Supported from version: 1.0.0.0

ItemsTop

string Items

Contains the list of all items.

Show/Hide Code

Supported from version: 1.0.0.0

ItemTemplateTop

string ItemTemplate

Get or set the template for listbox item. The data key is written in fomr {datakey} and will be replaced with text when ready.

Show/Hide Code

Supported from version: 1.0.0.0

scriptFolderTop

string scriptFolder

Get or set the path to folder which contains KoolListBox script.

Show/Hide Code

Supported from version: 1.0.0.0

SelectedItemsTop

string SelectedItems

Contains the list of selected items. This list should be accessed after listbox is initiated.

Show/Hide Code

Supported from version: 1.0.0.0

styleFolderTop

string styleFolder

Get or set folder which contain css style for KoolListBox

Show/Hide Code

Supported from version: 1.0.0.0

TransferModeTop

string TransferMode

Get or set whether item will be copied or moved when transferred.

Default value : "Move"

Allowed values :

  • "Move" : Move item
  • "Copy" : Copy item

Show/Hide Code

Supported from version: 1.0.0.0

TransferToIdTop

string TransferToId

Get or set the id of destination listbox.

Default value : "Move"

Show/Hide Code

Supported from version: 1.0.0.0

UpdatePanelTop

string UpdatePanel

Set the id of updatepanel that contains this listbox. By setting this property, listbox will do ajax call back instead of posting back when reorder or transfer occurs.

Show/Hide Code

Supported from version: 1.0.0.0

UseCheckBoxesTop

bool UseCheckBoxes

Get or set whether checkbox is used.

Show/Hide Code

Supported from version: 1.0.0.0

WidthTop

string Width

Get or set the width of KoolListBox.

Show/Hide Code

Supported from version: 1.0.0.0

Methods Detail

AddItemTop

KoolListBoxItem AddItem(ListBoxItem $item)

Add listbox item. The function returns the item object.

Show/Hide Code

Supported from version: 1.0.0.0

ClearAllTop

 ClearAll()

Clear all items.

Show/Hide Code

Supported from version: 1.0.0.0

InitTop

 Init()

Initiate listbox. This function should be called before listbox is rendered.

Show/Hide Code

Supported from version: 1.0.0.0

RenderTop

void Render()

Render the KoolListBox

Show/Hide Code

Supported from version: 1.0.0.0

RegisterScriptTop

string RegisterScript()

Return html to register js library for KoolListBox.

Show/Hide Code

Supported from version: 1.0.0.0

RegisterCSSTop

string RegisterCSS()

Return html to register CSS for KoolListBox

Show/Hide Code

Supported from version: 1.0.0.0

RenderListBoxTop

string RenderListBox()

Return html content of KoolListBox body

Show/Hide Code

Supported from version: 1.0.0.0

StartupScriptTop

string StartupScript()

Return js code to inititate KoolListBox

Show/Hide Code

Supported from version: 1.0.0.0