2
Reload RootFolders Client side
Question asked by Christoph Suter - September 29, 2016 at 11:38 PM
Unanswered
Hello
 
we are evaluation FileUltimate and we have to set the RootFolders in Javascript (because of a complex AJAX-driven structure). We are able to register a new RootFolder in Code Behind and afterwards we'd like to refresh the fileManager with the new RootFolder in Javascript. We successfully loaded the RootFolder with following Javascript code:
<script type="text/javascript">
    rootFolders = [
		    [
		      "@Model.Name",
		      32767,
		      "*/",
		      true,
		      "@rootFolder.Name"
		    ]
    ];

    fileManager.rootFolders = rootFolders;
    
    fileManager.loadRootFolders();
    fileManager.loadInititalFolder();
    fileManager.initStores();
The RootFolder is displayed in the NavigationPane, but not expanded either the subfolders are displayed in the center pane.
How do we refresh the fileManager correctly? Is there any client side documentation?
 
Thank you very much and best regards,
 
Christoph

Reply to Thread