ASPxClientDropDownEdit.SetKeyValue(keyValue) Method

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


    keyValue: string
): void


Name Type Description
keyValue string

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


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.

See Also