Back to Devexpress

ASPxClientListBox.SelectIndices(indices) Method

aspnet-js-aspxclientlistbox-dot-selectindices-x28-indices-x29.md

latest1.7 KB
Original Source

ASPxClientListBox.SelectIndices(indices) Method

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

Declaration

ts
SelectIndices(
    indices: number[]
): void

Parameters

NameTypeDescription
indicesnumber[]

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

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

See Also

UnselectIndices(indices)

GetSelectedIndices

SelectItems(items)

SelectAll

GetSelectedItems

SelectedIndices

SelectionMode

List Box

ASPxClientListBox Class

ASPxClientListBox Members