[]
        
(Showing Draft Content)

C1.Web.Mvc.ComboBoxBase-1

ComboBoxBase<T> Class

The ComboBox control allows users to pick strings from lists. The control automatically completes entries as the user types, and allows users to show a drop-down list with the items available.

Namespace: C1.Web.Mvc
Assembly: C1.Web.Mvc.dll
Syntax
public abstract class ComboBoxBase<T> : DropDown<T>, IHtmlString, ITemplate, IDropDown
Type Parameters
Name Description
T

Constructors

Name Description
ComboBoxBase(HtmlHelper, string)

Creates one ComboBoxBase<T> instance.

Properties

Name Description
CaseSensitiveSearch

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

DisplayMemberPath

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

HandleWheel

Gets or sets a value that determines whether the user can use the mouse wheel to change the currently selected item.

HeaderPath

Gets or sets the name of a property to use for getting the value displayed in the control's input element.

IsContentHtml

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

IsEditable

Gets or sets a value that enables or disables editing of the text in the input element of the ComboBox (defaults to false).

IsRequired

Gets or sets a value that determines whether the control value must be set to a non-null value or whether it can be set to null (by deleting the content of the control).

ItemFormatter

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

ItemTemplateContent

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

ItemTemplateId

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

MaxDropDownHeight

Gets or sets the maximum height of the drop-down list.

MaxDropDownWidth

Gets or sets the maximum width of the drop-down list.

OnClientFormatItem

Event that fires when items in the drop-down list are created.

OnClientItemsSourceChanged

Occurs when the value of the itemsSource property changes.

OnClientSelectedIndexChanged

Occurs when the value of the SelectedIndex property changes.

SelectedIndex

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

SelectedItem

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

SelectedValue

Gets or sets the value of the SelectedValue, 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 ComboBox

Methods

Name Description
Render(HtmlTextWriter)

Render the control or the callback result to the writer.

Extension Methods