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

Explorer Control does not refresh files when a new file is generated in App.

3 Answers 31 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 31 Jul 2019, 08:45 AM

Hi,

 

It seems like when we have the Telerik explorer control open and generate a new file into the directory in the App using a StreamReader, the file never appears in the explorer control. It seems that if you add a file to the directory using Windows Explorer, that file will appear immediately in the explorer control, and any files generated with the App suddenly appear as well. Is there an event that Windows Explorer triggers that we are missing? Is there a way to force the explorer control to refresh its files?

If you use the search bar to find the new file it will correctly find it, but as soon as you clear the search, the file will disappear again.

Thanks,

Ryan

3 Answers, 1 is accepted

Sort by
0
Drago
Telerik team
answered on 01 Aug 2019, 10:38 AM

Hello Ryan,

I have tried to reproduce the behavior from our side but was not able to.  I have attached the project I was using to test your scenario. Can you review it and let me know what am I missing. Please feel free to modify the project in order to reproduce the issue.

Looking forward to hear from you so we can troubleshoot further.

Regards,Dragan G
Progress Telerik

Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ryan
Top achievements
Rank 1
answered on 02 Aug 2019, 08:22 AM

Hi,

Try as we might, we could not reproduce in the small App. It seems like the bug is to do with our app structure which utilises IOC and PRISM; it only seems to occur when the control is in a different view to the file generation view.

However, we have managed to fix this by replacing the Explorer Control with a Content Control and calling something like:

this.ContentControl.Content = new ExplorerControl()
whenever we want to force a refresh (we have to set our bindings in code behind which is a shame but at least we have a fix!)

Cheers,

Ryan

0
Drago
Telerik team
answered on 05 Aug 2019, 01:09 PM

Hi Ryan,

Thanks for getting back to me and I'm happy to see that you were able to find a solution that works for you, even though you have to set your bindings in code behind.

Regards,Dragan G
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
FileDialogs
Asked by
Ryan
Top achievements
Rank 1
Answers by
Drago
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or