Default FileManager (Core MVC) to Grid view only

0 Answers 61 Views
FileManager
John
Top achievements
Rank 1
John asked on 12 Dec 2022, 09:05 PM
Is there a way to configure the FileManager so it displays files in the grid view only? I do see how to remove the option to switch between views but if I use that it only displays files in the list view.
John
Top achievements
Rank 1
commented on 13 Dec 2022, 02:32 PM | edited

Found it if anyone else is looking...it is the InitialView configuration option in combination with removing the "changeView" Toolbar option.

.InitialView("grid")

Alexander
Telerik team
commented on 15 Dec 2022, 05:07 PM

Hi John,

Thank you for sharing your solution with the community, it is greatly appreciated.

Indeed, in order to set the FileManager's default view to be the grid view the .InitialView() API configuration should be utilized. More information regarding the different view specifics and use-cases can be found here:

In addition, all of the available API configurations for the FileManager are available within our official Server-Side API Documentation:

No answers yet. Maybe you can help?

Tags
FileManager
Asked by
John
Top achievements
Rank 1
Share this question
or