ASPxClientListBox.ClearItems Method

Removes all items from the client list box editor.

Declaration

ClearItems(): void

Examples

The code sample below demonstrates how you can respond to a file manager selection change on the client side.

NOTE

The complete sample project is available in the DevExpress local or online demos.

function fileManager_SelectionChanged(s, e) {
     filesList.ClearItems();
     var selectedFiles = s.GetSelectedItems();
     for(var i = 0; i < selectedFiles.length; i++) {
          filesList.AddItem(selectedFiles[i].name);
     }
     document.getElementById("filesCount").innerHTML = selectedFiles.length;
}
See Also