ASPxClientFileManager.GetSelectedItems Method
Returns an array of the file manager’s selected items.
#Declaration
GetSelectedItems(): ASPxClientFileManagerFile[]
#Returns
Type | Description |
---|---|
ASPx |
An DevExpress. |
#Remarks
Use the GetSelectedItems method to obtain an array of the selected items within a file manager.
#Example
The code sample below demonstrates how you can respond to a file manager selection change on the client side.
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;
}