Skip to main content
A newer version of this page is available. .

ASPxClientFileManager.GetItems Method

Returns a list of files that are loaded on the current page.

Declaration

GetItems(): ASPxClientFileManagerFile[]

Returns

Type Description
ASPxClientFileManagerFile[]

The DevExpress.Web.Scripts.ASPxClientFileManagerFile[] collection of files.

Remarks

The file manager supports virtual scrolling, which allows files and folders in the file area to loaded on demand. In this mode, the file manager loads items automatically when the end-user scrolls the control content. Unnecessary files are unloaded. The number of items that are currently uploaded to the client side can be specified by the FileManagerSettingsFileList.PageSize property.

Use the GetItems property to get a list of files that are loaded on the current page. To get a list of all files contained within the current folder, use the ASPxClientFileManager.GetAllItems method.

Example

The code sample below demonstrates how to set the current folder on the client side using the SetCurrentFolderPath method. Note that the Report button selects the first file in the specified folder as well.

function SelectFirstFile() {
     myFileManager.GetItems()[0].SetSelected('true');
}
See Also