ClassTelerikFileManager<TItem>
A complete file management component for browsing, uploading, and organizing files and folders. Supports both local data binding and server-side operations through customizable events.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Type Parameters:
TItem
Syntax:
public class TelerikFileManager<TItem> : DataBoundComponent<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentDataBoundComponent<TItem>TelerikFileManager<TItem>
Implements:
Inherited Members
Constructors
TelerikFileManager()
Declaration
public TelerikFileManager()
Properties
DateCreatedField
Property name for creation date (local time). Default: "DateCreated".
Declaration
[Parameter]
public string DateCreatedField { get; set; }
Property Value
DateCreatedUtcField
Property name for creation date (UTC). Preferred over DateCreatedField. Default: "DateCreatedUtc".
Declaration
[Parameter]
public string DateCreatedUtcField { get; set; }
Property Value
DateModifiedField
Property name for modification date (local time). Default: "DateModified".
Declaration
[Parameter]
public string DateModifiedField { get; set; }
Property Value
DateModifiedUtcField
Property name for modification date (UTC). Preferred over DateModifiedField. Default: "DateModifiedUtc".
Declaration
[Parameter]
public string DateModifiedUtcField { get; set; }
Property Value
DialogFactory
Declaration
[CascadingParameter]
public DialogFactory DialogFactory { get; set; }
Property Value
DirectoriesField
Property name for child directories collection. Default: "Directories".
Declaration
[Parameter]
public string DirectoriesField { get; set; }
Property Value
EnableLoaderContainer
Shows loading indicator during file operations like reading, uploading, or deleting.
Declaration
[Parameter]
public bool EnableLoaderContainer { get; set; }
Property Value
ExtensionField
Property name for the file extension (without dot). Default: "Extension".
Declaration
[Parameter]
public string ExtensionField { get; set; }
Property Value
FileManagerSettings
Configures upload settings including URLs, file restrictions, and events. Children: FileManagerUploadSettings tag.
Declaration
[Parameter]
public RenderFragment FileManagerSettings { get; set; }
Property Value
FileManagerToolBar
Defines the toolbar tools and their layout for the FileManager interface. Add toolbar components to provide users with file management actions like creating folders, uploading files, sorting, searching, and changing views. Children: FileManager toolbar tool components including: FileManagerToolBarNewFolderTool - Creates new folders in the current directory (requires OnCreate event handling), FileManagerToolBarUploadTool - Opens upload dialog for adding files (requires FileManagerSettings with upload configuration), FileManagerToolBarSortTool - Dropdown for selecting sort criteria (name, size, date modified), FileManagerToolBarSortDirectionTool - Toggle buttons for ascending/descending sort order, FileManagerToolBarFileViewTool - Switch between ListView and Grid display modes, FileManagerToolBarViewDetailsTool - Toggle visibility of the preview pane for file details, FileManagerToolBarSearchTool - Text input for filtering files and folders by name, FileManagerToolBarSpacer - Add spacing between toolbar elements, FileManagerToolBarCustomTool - Add custom buttons, dropdowns, or other interactive elements.
Declaration
[Parameter]
public RenderFragment FileManagerToolBar { get; set; }
Property Value
HasDirectoriesField
Property name indicating if folder contains subdirectories. Default: "HasDirectories".
Declaration
[Parameter]
public string HasDirectoriesField { get; set; }
Property Value
Height
Sets the component height. Accepts CSS units like "400px" or "100%". Setting height enables internal scrolling for file lists.
IdField
Property name for the item's unique identifier. Default: "Id".
IsDirectoryField
Property name indicating if item is a folder. Default: "IsDirectory".
Declaration
[Parameter]
public string IsDirectoryField { get; set; }
Property Value
ItemsField
Property name for child files collection. Default: "Items".
Declaration
[Parameter]
public string ItemsField { get; set; }
Property Value
NameField
Property name for the file/folder display name. Default: "Name".
Declaration
[Parameter]
public string NameField { get; set; }
Property Value
OnCreate
Fires when users create new folders. Handle the actual folder creation in your file system.
Declaration
[Parameter]
public EventCallback<FileManagerCreateEventArgs> OnCreate { get; set; }
Property Value
OnDelete
Fires when users delete files or folders. Handle the actual removal from your file system.
Declaration
[Parameter]
public EventCallback<FileManagerDeleteEventArgs> OnDelete { get; set; }
Property Value
OnDownload
Fires when users download files. Provide file content through the event args Stream property.
Declaration
[Parameter]
public EventCallback<FileManagerDownloadEventArgs> OnDownload { get; set; }
Property Value
OnEdit
Fires when users start renaming files or folders. Set args.IsCancelled = true to prevent editing.
Declaration
[Parameter]
public EventCallback<FileManagerEditEventArgs> OnEdit { get; set; }
Property Value
OnModelInit
Creates new model instances when your class doesn't have a parameterless constructor.
Declaration
[Parameter]
public Func<TItem> OnModelInit { get; set; }
Property Value
Func<TItem>
OnRead
Fires when the FileManager needs to load directory contents. Required for data-bound scenarios.
Declaration
[Parameter]
public EventCallback<FileManagerReadEventArgs> OnRead { get; set; }
Property Value
OnUpdate
Fires when users complete renaming operations. Persist the changes to your data store.
Declaration
[Parameter]
public EventCallback<FileManagerUpdateEventArgs> OnUpdate { get; set; }
Property Value
ParentIdField
Property name for the parent folder's identifier. Default: "ParentId".
Declaration
[Parameter]
public string ParentIdField { get; set; }
Property Value
Path
Current directory path. Use forward slashes like "/folder/subfolder". Empty string represents the root directory. Supports two-way binding.
PathChanged
Fires when users navigate to a different directory.
Declaration
[Parameter]
public EventCallback<string> PathChanged { get; set; }
Property Value
PathField
Property name for the file/folder path. Default: "Path".
Declaration
[Parameter]
public string PathField { get; set; }
Property Value
SelectedItems
Collection of selected files and folders. Supports two-way binding.
Declaration
[Parameter]
public IEnumerable<TItem> SelectedItems { get; set; }
Property Value
IEnumerable<TItem>
SelectedItemsChanged
Fires when users select or deselect files and folders.
Declaration
[Parameter]
public EventCallback<IEnumerable<TItem>> SelectedItemsChanged { get; set; }
Property Value
EventCallback<IEnumerable<TItem>>
SizeField
Property name for the file size in bytes. Default: "Size".
Declaration
[Parameter]
public string SizeField { get; set; }
Property Value
View
Sets the initial display mode for files and folders. ListView shows items as icons in a list. Grid displays items in a sortable table.
Declaration
[Parameter]
public FileManagerViewType View { get; set; }
Property Value
ViewChanged
Fires when users switch between ListView and Grid display modes.
Declaration
[Parameter]
public EventCallback<FileManagerViewType> ViewChanged { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides