We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

File Manager component displays only in one page

I am trying to get a File Manager component to display in multiple razor pages, but for some reason it only displays in the AllFiles.razor page. For now I have exactly the same logic applied to all the pages. Any ideas why that is happening and how I should fix it?

Declaring the file manager the exact same way in all razor pages:

<div class="fileManager">
<SfFileManager TValue="FileManagerDirectoryContent" Width="100%" RootAliasName="Files" Path="/Favorites/" AllowDragAndDrop="true">
<FileManagerNavigationPaneSettings Visible="false" ></FileManagerNavigationPaneSettings>
<FileManagerAjaxSettings Url="/api/SampleData/FileOperations">

3 Replies

PM Prasanth Madhaiyan Syncfusion Team March 13, 2023 04:51 PM UTC

Hi Lyubo,

Greetings from Syncfusion support.

We have validated your reported query in the Blazor FileManager with Physical Provider sample. We understand that you are trying to render the File Manager component to display in multiple Razor pages. We have ensured both cases below, but we were unable to replicate the reported issue on our end.

  1. Rendered a file manager component in each pages.
  2. Created single razor component with Syncfusion file manager and integrate in all pages.

 For your reference, we have attached the sample and video.

 Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorFileManagerSample-193666835

 Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Video-753403178

Check out the shared sample to see if you have made any sample-level or CSS-level customizations on your end. If the issue still persists, could you please replicate the issue in the shared sample or share the details to replicate the issue in our end? This will help us to check and provide a prompt solution.


Prasanth Madhaiyan.

LY Lyubo March 13, 2023 05:23 PM UTC

It turned out the issue was that I somehow forgot to add 

@using Syncfusion.Blazor.FileManager

to all the razor pages individually. Thanks for the support tho!

IL Indhumathy Loganathan Syncfusion Team March 14, 2023 06:39 AM UTC

Lyubo, We are glad to hear that your reported query has been resolved. Please get back to us if you need any further assistance.

Live Chat Icon For mobile
Up arrow icon