Skip to main content

ASPxClientDropDownEdit.SetKeyValue(keyValue) Method

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

Declaration

SetKeyValue(
    keyValue: string
): void

Parameters

Name Type Description
keyValue string

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

Remarks

The SetKeyValue method works together with the client ASPxClientDropDownEdit.GetKeyValue 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.

Online Example

View Example: How to get selected values from a list box on the server

See Also