New to Telerik UI for Blazor? Start a free 30-day trial

Context menu item for FileManager file operations. Use the Data parameter of FileManagerContextMenuSettings to customize the context menu.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class FileManagerContextMenuItem

Inheritance: objectFileManagerContextMenuItem

Constructors

C#
public FileManagerContextMenuItem()

Properties

The command name associated with this menu item. Set a built-in command name from FileManagerCommands to reuse the built-in FileManager behavior (Rename, Download and Delete). Any other value is treated as a custom command - the FileManager does not execute it and only raises the OnClick event of FileManagerContextMenuSettings, so that the application can implement the action (for example "Duplicate", "Cut", "Move" or "Compress").

C#
public string CommandName { get; set; }
Example:
C#
new FileManagerContextMenuItem { Text = "Rename", CommandName = FileManagerCommands.Rename }
new FileManagerContextMenuItem { Text = "Duplicate", CommandName = "Duplicate" }

The icon for the menu item. Accepts an SvgIcon enum value or a string URL. Example: Icon = SvgIcon.Pencil or Icon = "my-icon.svg".

C#
public object Icon { get; set; }

The display text for the context menu item.

C#
public string Text { get; set; }