Skip to main content

ASPxClientListBox.SelectIndices(indices) Method

Selects the items with the specified indices within a list box.

Declaration

SelectIndices(
    indices: number[]
): void

Parameters

Name Type Description
indices number[]

An array of integer values that represent the items indices.

Remarks

Use the SelectIndices method to select an array of items within a list box with the specified indices.

Note

The SelectIndices method is not in effect if the ASPxListBox.SelectionMode property is set to ListEditSelectionMode.Single.

For more information about multiple selection, read the Multi-Selection Mode topic.

Example

function OnClick(s, e) {
     var arrayOfIndices = new Array();
     arrayOfIndices[0] = 1;
     arrayOfIndices[1] = 3;
     lst.SelectIndices(arrayOfIndices);
}
See Also