Skip to main content

ASPxClientDropDownEdit.GetKeyValue Method

Obtains the key value associated with the text displayed within the editor’s edit box.

Declaration

GetKeyValue(): string

Returns

Type Description
string

A string representing the key value associated with the editor’s value (displayed text).

Remarks

The GetKeyValue method works together with the client ASPxClientDropDownEdit.SetKeyValue method and the server ASPxDropDownEdit.KeyValue property. They allow you to implement custom lookup behavior using the ASPxDropDown editor more easily. If you define the editor’s dropdown window as a list of items which can have key values and display texts, you can preserve and synchronize information about the key value of a list item selected on the client, by using these members.

See Also