[]
        
(Showing Draft Content)

C1.Web.Mvc.ListBox-1

ListBox<T> Class

The ListBox control displays a list of items which may contain plain text or HTML, and allows users to select items with the mouse or the keyboard.

Inheritance
ListBox<T>
Implements
Namespace: C1.Web.Mvc
Assembly: C1.Web.Mvc.dll
Syntax
public class ListBox<T> : ItemsBoundControl<T>, IHtmlString, ITemplate
Type Parameters
Name Description
T

Constructors

Name Description
ListBox(HtmlHelper, string)

Creates one ListBox<T> instance.

Properties

Name Description
CaseSensitiveSearch

Gets or sets a value that determines whether searches performed while the user types should case-sensitive.

CheckedIndexes

Gets or sets a list containing the indexes of checked items.

CheckedMemberPath

Gets or sets the name of the property used to control checkboxes placed next to each item.

CheckedValues

Gets or sets a list containing the item-values that are currently checked.

DisplayMemberPath

Gets or sets the name of the property to use as the visual representation of the items.

IsContentHtml

Gets or sets a value indicating whether the list displays items as plain text or as HTML.

ItemFormatter

Gets or sets a function used to customize the values shown in the list.

ItemRole

Gets or sets the value of the "role" attribute added to the list items.

ItemTemplateContent

Gets or sets the id of the template used to generate each list item.

ItemTemplateId

Gets or sets the id of the template used to generate each list item.

MaxHeight

Gets or sets the maximum height of the list.

OnClientCheckedItemsChanged

Occurs when the value of the @see:checkedItems property changes.

OnClientFormatItem

Occurs when an element representing a list item has been created.

OnClientItemChecked

Occurs when the current item is checked or unchecked.

OnClientItemsChanged

Occurs when the list of items changes.

OnClientLoadedItems

Occurs after the list items are generated.

OnClientLoadingItems

Occurs before the list items are generated.

OnClientSelectedIndexChanged

Occurs when the value of the SelectedIndex property changes.

SelectedIndex

Gets or sets the index of the currently selected item in the list.

SelectedItem

Gets or sets the item that is currently selected in the list.

SelectedValue

Gets or sets the value of the SelectedItem, obtained using the SelectedValuePath.

SelectedValuePath

Gets or sets the name of the property used to get the SelectedValue from the SelectedItem.

ShowGroups

Gets or sets a value that determines whether the drop-down should include group header items to delimit data groups.

VirtualizationThreshold

Gets or sets the minimum number of rows and/or columns required to enable virtualization in the ListBox.

Extension Methods