Newly created folder get files from deleted folder with same name

2 posts, 0 answers
  1. Andreas
    Andreas avatar
    12 posts
    Member since:
    Aug 2010

    Posted 18 Jan 2011 Link to this post

    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
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 20 Jan 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top