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
Supported from version: 1.0.0.0
AllowMultiSelectTop
bool AllowMultiSelect
Get or set whether item multi-selecting is allowed.
Default value : false
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.
Supported from version: 1.0.0.0
AllowSelectTop
bool AllowSelect
Get or set whether item selecting is allowed.
Default value : true
Supported from version: 1.0.0.0
AllowTransferTop
bool AllowTransfer
Get or set whether item transferring is allowed.
Supported from version: 1.0.0.0
AllowTransferOnDoubleClickTop
bool AllowTransferOnDoubleClick
Get or set whether item transferring is allowed when user do double clicks.
Supported from version: 1.0.0.0
AutoPostBackOnDeleteTop
bool AutoPostBackOnDelete
Get or set whether listbox will do postback after items are deleted.
Supported from version: 1.0.0.0
AutoPostBackOnReorderTop
bool AutoPostBackOnReorder
Get or set whether listbox will do postback after items are reordered.
Supported from version: 1.0.0.0
AutoPostBackOnTransferTop
bool AutoPostBackOnTransfer
Get or set whether listbox will do postback after items are tranferred.
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.
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.
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.
Supported from version: 1.0.0.0
scriptFolderTop
string scriptFolder
Get or set the path to folder which contains KoolListBox script.
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.
Supported from version: 1.0.0.0
styleFolderTop
string styleFolder
Get or set folder which contain css style for KoolListBox
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
Supported from version: 1.0.0.0
TransferToIdTop
string TransferToId
Get or set the id of destination listbox.
Default value : "Move"
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.
Supported from version: 1.0.0.0
UseCheckBoxesTop
bool UseCheckBoxes
Get or set whether checkbox is used.
Supported from version: 1.0.0.0
Methods Detail
AddItemTop
KoolListBoxItem AddItem(ListBoxItem $item)
Add listbox item. The function returns the item object.
Supported from version: 1.0.0.0
InitTop
Init()
Initiate listbox. This function should be called before listbox is rendered.
Supported from version: 1.0.0.0
RegisterScriptTop
string RegisterScript()
Return html to register js library for KoolListBox.
Supported from version: 1.0.0.0
RegisterCSSTop
string RegisterCSS()
Return html to register CSS for KoolListBox
Supported from version: 1.0.0.0
RenderListBoxTop
string RenderListBox()
Return html content of KoolListBox body
Supported from version: 1.0.0.0
StartupScriptTop
string StartupScript()
Return js code to inititate KoolListBox
Supported from version: 1.0.0.0