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

Newly created folder get files from deleted folder with same name

1 Answer 47 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 18 Jan 2011, 11:08 AM
Hi,

I'm having a caching issue where a removed file from a folder re-appears in a newly created folder with the same name as the old folder

Steps to reproduce:
1. Create folder with name A
2. Add a file file.txt to folder A
3. I right click on folder A and choose Delete. Folder A is deleted (folder and file deleted in backend)
4. Create a _new_ folder with name A
5. file.txt now appears in the grid in the newly created folder A.

In step 3, the file and folder is physically removed, and I have checked that I'm not mistakenly re-adding it in my custom ContentProvider.

6. Do a hard refresh (ctrl + F5), now file.txt disappears from A.

I'm using version 2010.3. I'm not using client side databinding.

Any suggestions on how to solve this would be much appreciated. I guess it has to do with caching? Is there a way to invalidate the cache for the deleted folder?

Best regards,
Andreas

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 20 Jan 2011, 03:52 PM
Hi Andreas,

This is expected behavior of RadFileExplorer. It is caused due to the fact that the deleted folder content is cached by the browser and when you navigate to the newly created folder with the same name this cached information is used. Caching of the folders content is used to increase the performance of the control.

I have logged this issue in our ToDo list and we will do our best to handle this scenario for one of our upcoming releases. Here you can find the PITS Issue: Public URL.

At present, I am unable to provide a suitable workaround for this behavior.

Greetings,
Dobromir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
FileExplorer
Asked by
Andreas
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or