[]
        
(Showing Draft Content)

C1.Web.Mvc.TagHelpers.ListBoxTagHelper

ListBoxTagHelper Class

ITagHelper implementation for ListBox<T>.

Namespace: C1.Web.Mvc.TagHelpers
Assembly: C1.AspNetCore.Mvc.dll
Syntax
[HtmlTargetElement("c1-list-box")]
[RestrictChildren("c1-items-source", new string[] { "c1-odata-source", "c1-odata-virtual-source", "c1-input-item-template" })]
public class ListBoxTagHelper : ItemsBoundControlTagHelper<object, ListBox<object>>, ITagHelper, ITagHelperComponent, ITemplateTagHelper

Constructors

Name Description
ListBoxTagHelper()

Properties

Name Description
CaseSensitiveSearch

Configurates CaseSensitiveSearch. Sets a value that determines whether searches performed while the user types should case-sensitive.

CheckedIndexes

Configurates CheckedIndexes. Sets a list containing the indexes of checked items.

CheckedItemsChanged

Configurates the OnClientCheckedItemsChanged client event. Occurs when the value of the @see:checkedItems property changes.

CheckedMemberPath

Configurates CheckedMemberPath. Sets the name of the property used to control checkboxes placed next to each item.

CheckedValues

Configurates CheckedValues. Sets a list containing the item-values that are currently checked.

DisplayMemberPath

Configurates DisplayMemberPath. Sets the name of the property to use as the visual representation of the items.

FormatItem

Configurates the OnClientFormatItem client event. Occurs when an element representing a list item has been created.

IsContentHtml

Configurates IsContentHtml. Sets a value indicating whether the list displays items as plain text or as HTML.

ItemChecked

Configurates the OnClientItemChecked client event. Occurs when the current item is checked or unchecked.

ItemFormatter

Configurates ItemFormatter. Sets a function used to customize the values shown in the list.

ItemRole

Configurates ItemRole. Sets the value of the "role" attribute added to the list items.

ItemsChanged

Configurates the OnClientItemsChanged client event. Occurs when the list of items changes.

LoadedItems

Configurates the OnClientLoadedItems client event. Occurs after the list items are generated.

LoadingItems

Configurates the OnClientLoadingItems client event. Occurs before the list items are generated.

MaxHeight

Configurates MaxHeight. Sets the maximum height of the list.

SelectedIndex

Configurates SelectedIndex. Sets the index of the currently selected item in the list.

SelectedIndexChanged

Configurates the OnClientSelectedIndexChanged client event. Occurs when the value of the SelectedIndex property changes.

SelectedItem

Configurates SelectedItem. Sets the item that is currently selected in the list.

SelectedValue

Configurates SelectedValue. Sets the value of the SelectedItem, obtained using the SelectedValuePath.

SelectedValuePath

Configurates SelectedValuePath. Sets the name of the property used to get the SelectedValue from the SelectedItem.

ShowGroups

Configurates ShowGroups. Sets a value that determines whether the drop-down should include group header items to delimit data groups.

VirtualizationThreshold

Configurates VirtualizationThreshold. Sets the minimum number of rows and/or columns required to enable virtualization in the ListBox.