Wisej.Web.ComboBox ObjectCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents the collection of items in a Wisej.Web.ComboBox control.
Int32: Returns the number of items in the collection.
Boolean: Returns or sets the dirty state for the list. When true, the list of items must be sent back to the client.
Boolean: Returns or sets the new state for the list. When true, the entire list is cleared and reloaded on the client.
Boolean: Returns a value indicating whether this collection can be modified.
Object: Retrieves the item at the specified index within the collection.
Throws:
ArgumentOutOfRangeException The index was less than zero; or the index was greater of equal to the count of items in the collection.
Adds an item to the list of items for a ComboBox.
item
An object representing the item to add to the collection.
Returns: Int32. The zero-based index of the item in the collection.
Throws:
ArgumentNullException The item parameter was null.
Adds a collection of items to the list.
items
Collection of items to add to the list.
Removes all items from the ComboBox.
Removes all the items from the list without checking for the data source binding.
Determines if the specified item is located within the collection.
value
An object representing the item to locate in the collection.
Returns: Boolean. true if the item is located within the collection; otherwise, false.
Throws:
ArgumentNullException value is null.
Copies the entire collection into an existing array of objects at a specified location within the array.
destination
The object array to copy the collection to.
index
The location in the destination array to copy the collection to.
Returns an instance of the Element wrapper class.
value
Wrapped value.
state
Initial state.
Returns: Element.
Adds a collection of items to the list.
items
Collection of items to add to the list.
Returns an enumerator that can be used to iterate through the item collection.
Returns: IEnumerator. A IEnumerator that represents the item collection.
Returns the element at the index.
index
Returns: Element.
Returns the real index in the collection accounting for the deleted items that have not been committed to the client yet.
index
Returns: Int32.
Retrieves the index within the collection of the specified item.
value
An object representing the item to locate in the collection.
Returns: Int32. The zero-based index where the item is located within the collection; otherwise, -1.
Throws:
ArgumentNullException The value parameter was null.
Retrieves the index within the collection of the specified item.
element
An object representing the item to locate in the collection.
Returns: Int32. The zero-based index where the item is located within the collection; otherwise, -1.
Throws:
ArgumentNullException The element parameter was null.
Inserts an item into the collection at the specified index.
index
The zero-based index location where the item is inserted.
item
An object representing the item to insert.
Throws:
ArgumentNullException The item was null.
ArgumentOutOfRangeException The index was less than zero; or the index was greater than the count of items in the collection.
Fires the CollectionChanged event.
action
element
The element that was added or removed from the collection, or null.
Removes the specified item from the ComboBox.
value
Removes an item from the ComboBox at the specified index.
index
The index of the item to remove.
Throws:
ArgumentOutOfRangeException The index parameter was less than zero, or the index parameter was greater than or equal to the count of items in the collection.
Renders the list to the json definition for the client.
Returns: Object.
Changes a single element in the list.
index
The index of the item to change.
value
The new value of the item.
CollectionChangeEventHandler Fired when the collection changes.
One of indicating the reason the collection has changed.
The to remove from the list.
Wisej.Web.ComboBox
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a combo box control.
Initializes an instance of ComboBox.
Initializes a new instance of ComboBox class with specific initial settings.
onSelectedIndexChanged
Initializes a new instance of ComboBox class with specific initial settings.
label
onSelectedIndexChanged
Initializes a new instance of ComboBox class with specific initial settings.
dataSource
displayMember
valueMember
iconMember
onSelectedIndexChanged
Initializes an instance of ComboBox with the given datasource, size, location, and action.
location
Initial location.
size
Initial size.
onSelectedIndexChanged
Initializes an instance of ComboBox with the given datasource, size, location, and action.
location
Initial location.
size
Initial size.
dataSource
displayMember
valueMember
iconMember
onSelectedIndexChanged
Initializes an instance of ComboBox with the given datasource, size, location, and action.
label
location
Initial location.
size
Initial size.
onSelectedIndexChanged
Initializes an instance of ComboBox with the given datasource, size, location, and action.
label
location
Initial location.
size
Initial size.
dataSource
displayMember
valueMember
iconMember
onSelectedIndexChanged
Boolean: Returns or sets a value indicating that the control can display html in the Text property. (Default: False
)
AutoCompleteMode: Returns or sets how automatic completion works for the ComboBox. (Default: None
)
Boolean: Returns or sets whether the height of the control is set automatically. (Default: True
)
CharacterCasing: Returns or sets whether the ComboBox control modifies the case of characters as they are typed. (Default: Normal
)
Size: Returns the default size for the ComboBox control.
Int32: Returns or sets the maximum height in pixels of the drop-down portion of the ComboBox. (Default: 400
)
Throws:
ArgumentException The specified value is less than one.
ComboBoxStyle: Returns or sets the drop down style of the combo box. (Default: DropDown
)
Int32: Returns or sets the maximum width in pixels of the drop-down list of the ComboBox. When the value is 0, the drop-down list will grow to fit the largest item. (Default: 0
)
Throws:
ArgumentException The specified value is less than one.
Boolean: Returns or sets whether the combo box is displaying its drop-down portion.
Boolean: Enables or disables the browser's context menu. (Default: True
)
Boolean: Returns or sets whether items are selected incrementally as the user types within a timeout of 1 second. (Default: True
)
Int32: Gets or sets the height of the list items in the drop-down list. When the value is -1, uses the value set in the theme. (Default: -1
)
Throws:
ArgumentOutOfRangeException The assigned value is less than -1; or the assigned value is greater than 500.
ObjectCollection: Returns the collection of the items contained in this ComboBox.
LabelWrapper: Provides a label related to the control.
String: Returns or sets the localizable label associated with this control. (Default: ""
)
Boolean: Returns or sets whether the items are sent to the client the first time the list is opened and enables the Load event. (Default: False
)
Int32: Returns or sets the number of characters a user can type into the ComboBox. (Default: 0
)
Throws:
ArgumentOutOfRangeException The value is less than 0.
Boolean: Returns or sets whether the control is read-only. (Default: False
)
Int32: Returns or sets the index of the currently selected item.
Throws:
ArgumentOutOfRangeException The specified index is less than -1; o the specified index is greater than the number of items in the combo box.
Int32: Returns or sets the SelectedIndex without triggering any event.
Object: Returns or sets currently selected item in the ComboBox.
String: Returns or sets the text that is selected in the editable portion of a ComboBox.
Int32: Returns or sets the number of characters selected in the editable portion of the combo box.
Throws:
ArgumentException The value was less than zero.
Int32: Returns or sets the starting index of text selected in the combo box.
Throws:
ArgumentException The value is less than zero.
Boolean: Returns or sets whether the items in the combo box are sorted. (Default: False
)
Throws:
ArgumentException An attempt was made to sort a ComboBox that is attached to a data source.
Boolean: Returns or sets whether the text in the ComboBox is spell checked by the browser. (Default: False
)
String: Returns or sets the text associated with this control. (Default: ""
)
ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.
String: Returns or sets the text to show when the control is empty. (Default: null
)
Not used. Kept for compatibility.
Copies the current selection in the text box to the Clipboard.
Creates a new instance of the item collection.
Returns: ObjectCollection. A ObjectCollection that represents the new item collection.
Moves the current selection in the text box to the Clipboard.
Disposes the control.
disposing
true when this method is called by the application rather than a finalizer.
Not used. Kept for compatibility.
Returns the index of the first item in the ComboBox that starts with the specified string.
text
Returns: Int32. The zero-based index of the first item found; returns -1 if no match is found.
Returns the index of the first item in the ComboBox beyond the specified index that contains the specified string. The search is not case sensitive.
text
startIndex
The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the control.
Returns: Int32. The zero-based index of the first item found; returns -1 if no match is found, or 0 if the text parameter specifies Empty.
Finds the first item in the combo box that matches the specified string.
text
Returns: Int32. The zero-based index of the first item found; returns -1 if no match is found, or 0 if the text parameter specifies Empty.
Finds the first item after the specified index that matches the specified string.
text
startIndex
The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the control.
Returns: Int32. The zero-based index of the first item found; returns -1 if no match is found, or 0 if the text parameter specifies Empty.
text
startIndex
ignoreCase
ignoreHtml
ignoreCrLf
Returns: Int32.
proposedSize
Returns: Size.
Fires the AutoComplete event.
e
Fires the DataSourceChanged event.
e
Fires the DisplayMemberChanged event.
e
Fires the DropDown event.
e
Fires the DropDownClosed event.
e
Fires the DropDownStyleChanged event.
e
Fires the Load event.
e
Fires the ReadOnlyChanged event.
e
Fires the SelectedIndexChanged event.
e
Fires the SelectedItemChanged event.
e
Fires the SelectionChangeCommitted event.
e
Fires the SortedChanged event.
e
Fires the ToolClick event.
e
Fires the Validating event.
e
Fires the ValueMemberChanged event.
e
Processes the event from the client.
e
Event arguments.
Renders the client component.
config
Dynamic configuration object.
Updates the client component using the state information.
state
Dynamic state object.
Replaces the current selection in the text box with the contents of the Clipboard.
Refreshes the item contained at the specified location.
index
The location of the item to refresh.
Reloads all the ComboBox items from the data source.
Selects a range of text in the editable portion of the ComboBox.
start
The position of the first character in the current text selection within the text box.
length
The number of characters to select.
Selects all the text in the editable portion of the ComboBox.
Sets the specified bounds of the ComboBox control.
x
y
width
height
Not used.
specified
Sets the object with the specified index in the derived class.
index
The array index of the object.
value
The object.
Sets the specified array of objects in a collection in the derived class.
value
An array of items.
Sorts the items in the ComboBox.
HandledEventHandler Fired before the Validating event when DropDownStyle is set to DropDown or Simple.
The application may implement a different way to select the item when the user types a text and the ComboBox is validated. Set e.Handled to true to override the standard behavior.
EventHandler Fired when the drop-down portion of a ComboBox is shown.
EventHandler Fired when the drop-down portion of the ComboBox is no longer visible.
EventHandler Fired when the DropDownStyle property has changed.
EventHandler Fired when the drop-down list is first opened and the LazyLoading property is true.
When LazyLoading is true An application may fill the items at any time prior to the drop-down list being opened, or while processing the DropDown or Load event.
EventHandler Fired when the value of the ReadOnly property has changed.
EventHandler Fired when the SelectedIndex property has changed.
EventHandler Fired when the SelectedItem property has changed.
EventHandler Fired when the selected item has changed and that change is displayed in the ComboBox.
EventHandler Fired when the Sorted property has changed.
ToolClickEventHandler Fired when a ComponentTool is clicked.
Provides access to the UserData
and Tag
properties associated to the component implementing this interface.
Bindable components implement this interface.
Controls that support drag & drop operations implement this interface.
Provides access to the validation events and properties property for controls that support validation.
All wisej components implement this interface.
Allows an object to serialize itself.
handler.
The initial text to display in the label.
handler.
Initial .
Initial .
Initial .
Initial .
Optional handler.
Optional handler.
Initial .
Initial .
Initial .
Initial .
Optional handler.
The initial text to display in the label.
Optional handler.
The initial text to display in the label.
Initial .
Initial .
Initial .
Initial .
Optional handler.
The to search for.
The to search for.
The to search for.
The to search for.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
An that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
The new property value of the control.
The new property value of the control.
The new property value of the control.
A combination of the values.
Represents a control that can be hosted in a .
The TreeViewComboBox control represents a control with a as the drop down panel.
The TreeViewComboBox control represents a control with a as the drop down panel.
The UserComboBox control represents a control with a custom panel that drops down when the user clicks the down arrow.
Provides access to the associated with the controls that implement this interface.
Provides access to the property for coontrols that support the read-only mode.
Provides access to the property and event for controls that implement this interface.
All wisej controls derived from the class must implement this interface.