Skip to main content

ASPxClientListBox.UnselectAll Method

Unselects all list box items.

Declaration

UnselectAll(): void

Remarks

If the filter criteria is applied to the list box on the client side, the UnselectAll method affects only the filtered list box items. If a user implements the following actions sequentially – filtering, selecting all the filtered items and then clearing the applied filter criteria – only the previously filtered list box items remains selected. It means that the UnselectAll method is applied only to the currently visible list box items.

Note

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

function OnClick(s, e) {
    clientListBox.UnselectAll();
}

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

See Also