In some instances, I want to rename my root folder (top node ni TreeView). This is done via an ajax call that triggers the rename in the backend. After that ajax call is done, I call explorer.refresh() (client side). However, the name of the top node in the TreeView doesn't update.
When calling explorer.refresh() I've verified that PageLoad is executed in the code behind. I update the "root folder" paths during page load:
fileExplorer.Configuration.ViewPaths = new[] { newRootFolderName };
fileExplorer.Configuration.UploadPaths = new[] { newRootFolderName };
fileExplorer.Configuration.DeletePaths = new[] { newRootFolderName };
Still, the root folder name doesn't update in the TreeView on the page.
Is there a way to update the root folder (except doing a hard refresh)?
When calling explorer.refresh() I've verified that PageLoad is executed in the code behind. I update the "root folder" paths during page load:
fileExplorer.Configuration.ViewPaths = new[] { newRootFolderName };
fileExplorer.Configuration.UploadPaths = new[] { newRootFolderName };
fileExplorer.Configuration.DeletePaths = new[] { newRootFolderName };
Still, the root folder name doesn't update in the TreeView on the page.
Is there a way to update the root folder (except doing a hard refresh)?