Back to Devexpress

ASPxClientListEdit.SetSelectedIndex(index) Method

aspnet-js-aspxclientlistedit-dot-setselectedindex-x28-index-x29.md

latest894 B
Original Source

ASPxClientListEdit.SetSelectedIndex(index) Method

Sets the list editor’s selected item specified by its index.

Declaration

ts
SetSelectedIndex(
    index: number
): void

Parameters

NameTypeDescription
indexnumber

The index of the item to select.

|

Remarks

Use the SetSelectedIndex method on the client side to specify the selected item within the list editor. If a value of -1 is passed as the parameter, no item will be selected within the list editor.

See Also

SetSelectedItem(item)

GetSelectedIndex

EnableClientSideAPI

ASPxClientListEdit Class

ASPxClientListEdit Members