Hi Gudmundur Gislason,
Greetings from Syncfusion support.
We have checked your requirement with FileManager component (Hide the particular item in context menu/menu bar). By using ContextMenuSettings and ToolbarSettings , we can display the particular items based on your requirement. So, there is no need to hide the items.
Please refer to the below code snippet.
|
@using Syncfusion.Blazor.FileManager
<SfFileManager ID="filemanager" @ref="file" >
</FileManagerAjaxSettings>
<FileManagerContextMenuSettings File="@Items" Folder="@Items"></FileManagerContextMenuSettings>
<FileManagerToolbarSettings Items="@Items" ></FileManagerToolbarSettings>>
</SfFileManager>
@code{
SfFileManager file;
public string[] Items = new string[] { "Open", "|", "Upload", "Refresh", "Download"};
public string[] Toolbar_Items = new string[] { "Open", "|", "Upload", "Refresh", "Download" };
}
|
Please, refer to the below link to know more about context menu settings.
Please, download the sample from the following link.
Refer to the below links to know more about the FileManager component.
Please let us know, if you need any further assistance.
Regards,
Sowmiya.P