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

Caching Issue in Telerik File Manager?

1 Answer 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ABC
Top achievements
Rank 1
ABC asked on 19 Sep 2013, 09:07 AM
Is there a way that we can append a query string to an image, when telerik load the images? I have a caching issue. Please let me know how to fix this

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 24 Sep 2013, 08:33 AM
Hi,

I could suggest you add the query string to the image url right before it opens. In order to achieve this you could handle the "OnFileOpen" client-side event and change the item path:
<telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="600px" Height="310px" OnClientFileOpen="fileOpen">
    <Configuration ViewPaths="~/Images" AllowFileExtensionRename="true"></Configuration>
</telerik:RadFileExplorer>

And the JavaScript:
function fileOpen(sender, args) {
    args.get_item().set_path(args.get_path() + "?test=1234")
}

Please try this and see if it works for your scenario.

 

Regards,
Konstantin Dikov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
General Discussions
Asked by
ABC
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or