File manager, set folder and file name in the code.
Problem reported by Daniel Molasy - 9/21/2025 at 12:55 PM
Resolved
Is this possible to set specific zip file to be selected by default in FileManager?
I am passing this parameter "~/App_Data/RootFolder1/test.zip";
How to tell FileManager to select test.zip in file manager viewer ?
In ~/App_Data/RootFolder1 I have hunderts of zip file and I need to set name of zip file in code.
Somethink like this:
rootFolder.Location = "~/App_Data/RootFolder1";
rootFolder.Location.SelectedFile = "test.zip"
Is this possible?

Cem Alacayir Replied
Employee Post Marked As Resolution
Did you try FileManager.InitialFolder property?

InitialFolderGets or sets the folder that should be selected and displayed initially. Default is "first". The value can be shortcuts like "first", "last" or the full path of the folder specified in format "[RootFolderName]:\Some\Folder". When set to null or empty string, no folder will be selected and displayed initially.

Note that you can directly specify the zip file as it will be treated as a folder:

fileManager.InitialFolder = @"[RootFolderName]:\SomeFolder\test.zip";

fileManager.InitialFolder = FileManagerRootFolder.GetFullPath(rootFolder.Name, @"SomeFolder\test.zip");

Reply to Thread

Enter the verification text