This is a migrated thread and some comments may be shown as answers.

Possible To Avoid Internal Caching (force async postback)?

1 Answer 105 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Chris May
Top achievements
Rank 1
Chris May asked on 23 Mar 2011, 01:57 PM
I have a FileExplorer on a page with a very short logout period.

The problem is, when people are logged out, they are still able to click around the FileExplorers folders so long as they have visited the folders recently (the internal caching of the FileExplorer doesn't make another trip to the server).

Is it possible to have the FileExplorer not cache it's lists of flies, and ask the server when a folder is selected for the current list of files in that folder?

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 25 Mar 2011, 09:45 AM
Hi Chris,

I already answered your support ticket on the subject. For convenience I will paste my answer here as well.

It is possible to avoid the internal caching of RadFileExplorer by assigning a handler to the ClientFolderLoaded event and clear the cache using the clearFolderCache() client-side method of RadFileExplorer, e.g.:
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" OnClientFolderLoaded="OnClientFolderLoaded">
    <Configuration ViewPaths="~/ROOT" DeletePaths="~/ROOT" UploadPaths="~/ROOT" />
</telerik:RadFileExplorer>
 
<script type="text/javascript">
    function OnClientFolderLoaded(explorer, args)
    {
        explorer.clearFolderCache();
    }
</script>


Regards,
Dobromir
the Telerik team
Tags
FileExplorer
Asked by
Chris May
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or