ASPxClientFileManager.GetSelectedItems Method

Returns an array of the file manager's selected items.

Declaration

GetSelectedItems(): ASPxClientFileManagerFile[]

Returns

Type Description
ASPxClientFileManagerFile[]

An DevExpress.Web.Scripts.ASPxClientFileManagerFile[] array containing the selected items.

Remarks

Use the GetSelectedItems method to obtain an array of the selected items within a file manager.

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