Skip to main content

ASPxClientComboBox.GetText Method

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

Declaration

GetText(): string

Returns

Type Description
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