Back to Devexpress

ASPxClientComboBox.GetText Method

aspnet-js-aspxclientcombobox-21001e85.md

latest1.3 KB
Original Source

ASPxClientComboBox.GetText Method

Gets the text displayed in the editor’s edit box.

Declaration

ts
GetText(): string

Returns

TypeDescription
string

A string value representing the text within the editor.

|

Remarks

ASPxComboBox has an internal mechanism for accepting/rejecting entered values. In some options, ASPxComboBox allows you to enter any values in order to use them during filtering, but it accepts only those text values that are available among found items. The GetText method returns the last accepted values.

To get an entered value (an actual value, which might be rejected by the ASPxComboBox in the future), use the public client-side ASPxClientEdit.GetInputElement method. It retrieves the input element used by the editor. Then, you can obtain the entered value using the input’s value property.

See Also

SetText(text)

TextChanged

KeyUp

GetInputElement

Combo Box

ASPxClientComboBox Class

ASPxClientComboBox Members