Disable ViewType.LargeIcons

Hello,

is possible to disable Syncfusion.Blazor.FileManager.ViewType.LargeIcons and set ...ViewType.Details as default?

Now my code looks something like this:


Regards,

JP


3 Replies 1 reply marked as answer

KR Keerthana Rajendran Syncfusion Team December 20, 2021 07:55 AM UTC

Hi Jan, 
 
Thanks for contacting Syncfusion support. 
 
We couldn’t find any code with your update. Hence, we have prepared a Blazor File Manager sample by setting default view type as DetailsView using the below code.  
 
<SfFileManager ID="file-manager" 
                   TValue="FileManagerDirectoryContent" 
                   View="ViewType.Details"> 
        <FileManagerAjaxSettings Url="/api/SampleData/FileOperations" 
                                 UploadUrl="/api/SampleData/Upload" 
                                 DownloadUrl="/api/SampleData/Download" 
                                 GetImageUrl="/api/SampleData/GetImage"> 
        </FileManagerAjaxSettings> 
    </SfFileManager> 
 
To prevent the change of details view, you can remove the View toolbar item using the below code. 
 
<SfFileManager ID="file-manager" 
                   TValue="FileManagerDirectoryContent" 
                   View="ViewType.Details"> 
        <FileManagerAjaxSettings Url="/api/SampleData/FileOperations" 
                                 UploadUrl="/api/SampleData/Upload" 
                                 DownloadUrl="/api/SampleData/Download" 
                                 GetImageUrl="/api/SampleData/GetImage"> 
        </FileManagerAjaxSettings> 
        <FileManagerToolbarSettings Items="@Items"> 
        </FileManagerToolbarSettings> 
    </SfFileManager> 
 
@code { 
    public string[] Items =  new string[] {"NewFolder", "Upload", "Delete", "Download", "Rename", "SortBy", "Refresh", "Selection", "Details"}; 
} 
 
 
 
 
 
Please let us know if you need any further assistance. 
 
Regards, 
Keerthana R. 


Marked as answer

JA Jan replied to Keerthana Rajendran December 20, 2021 06:55 PM UTC

Hello Keerthana,


Thanks a lot for your advice. It works great!


Regards

JP



KR Keerthana Rajendran Syncfusion Team December 21, 2021 05:26 AM UTC

Hi JP, 

Most welcome. We are glad to hear that the provided suggestions helped you. Please get back to us if you need any further assistance. 

Regards, 
Keerthana R. 


Loader.
Up arrow icon