Refresh by program

Hi,

I would like to programatically refresh the FileExplorer view, because after uploading files, in the "UploadComplete" event, i move or delete some uploaded files, so i would like to do Something like this in my UploadComplete event :

        var fe = $("#fileExplorer").ejFileExplorer("instance");
        fe.Refresh();

But i does not work ;-)

Can you help me please ?
Fred.

1 Reply

AB Ashokkumar Balasubramanian Syncfusion Team July 5, 2018 07:20 AM UTC

Hi Fred,   
   
We have checked your reported problem at our end. In our FileExplorer component, when we delete/move the file on it, it will automatically refresh the UI also, no need to refresh manually. In case, when the files are deleted from the file system dynamically, at that time we can call the refresh method as you mentioned in your code block to refresh the UI.    
   
For your scenario, we suspect that you have tried to delete or move the files programmatically, but the corresponding files may be not deleted from FileSystem. Could you please ensure this scenario at your end?    
   
And, our FileExplorer component, have only refresh method not Refresh. Please ensure this too.   
   
   
Please let us know our provided information’s are helpful to resolve your problem or not?   
   
Regards,   
Ashokkumar B.   


Loader.
Up arrow icon