React SelectBox Events
This section describes events fired by this widget.
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
change
Raised when the widget loses focus after the text field's content was changed using the keyboard.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onChange
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
closed
Raised once the drop-down editor is closed.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onClosed
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
contentReady
Raised when the widget's content is ready.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only when using Knockout. | 
Main article: onContentReady.
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
copy
Raised when the widget's input has been copied.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onCopy
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
customItemCreating
Raised when a user adds a custom item.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| customItem | | | | The field where to place a custom item. | 
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only if you use Knockout. | |
| text | The input field's text. | 
Main article: onCustomItemCreating
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
cut
Raised when the widget's input has been cut.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onCut
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
disposing
Raised before the widget is disposed of.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only if you use Knockout. | 
Main article: onDisposing
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
enterKey
Raised when the Enter key has been pressed while the widget is focused.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onEnterKey
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
focusIn
Raised when the widget gets focus.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The widget's instance. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onFocusIn
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
focusOut
Raised when the widget loses focus.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The widget's instance. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onFocusOut
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
initialized
Raised only once, after the widget is initialized.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | 
Main article: onInitialized
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
input
Raised each time the widget's input is changed while the widget is focused.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onInput
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
itemClick
Raised when a list item is clicked or tapped.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| itemData | The clicked item's data. | |
| itemElement | The item's container. | |
| itemIndex | | | The clicked item's index. If the widget items are grouped, the index represents an object defining the group and item indexes: { group: 0, item: 0 }. | 
| model | The model data. Available only if Knockout is used. | 
Main article: onItemClick
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
keyDown
Raised when a user is pressing a key on the keyboard.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onKeyDown
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
keyPress
Raised when a user presses a key on the keyboard.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onKeyPress
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
keyUp
Raised when a user releases a key on the keyboard.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onKeyUp
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
opened
Raised once the drop-down editor is opened.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onOpened
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
optionChanged
Raised after a widget option is changed.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| model | The model data. Available only if you use Knockout. | |
| fullName | The path to the modified option that includes all parent options. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The widget's instance. | |
| name | The modified option if it belongs to the first level. Otherwise, the first-level option it is nested into. | |
| value | any | The modified option's new value. | 
Main article: onOptionChanged
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
paste
Raised when the widget's input has been pasted.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| model | The model data. Available only if Knockout is used. | 
Main article: onPaste
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
selectionChanged
Raised when a list item is selected or selection is canceled.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only if Knockout is used. | |
| selectedItem | The selected item's data. | 
Main article: onSelectionChanged
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
valueChanged
Raised after the widget's value is changed.
Event
Information about the event.
| Name | Type | Description | 
|---|---|---|
| value | Returns the widget's new value. | |
| previousValue | Returns the widget's previous value. | |
| model | The model data. Available only if Knockout is used. | |
| jQueryEvent | Use 'event' instead. The jQuery event that caused the handler execution. Deprecated in favor of the event field. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is a dxEvent or a jQuery.Event when you use jQuery. | 
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The widget's instance. | 
Main article: onValueChanged
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
If you have technical questions, please create a support ticket in the DevExpress Support Center.