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

Incorrect RadOpenFolderDialog.FileName for C:\ drive

3 Answers 115 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Gina
Top achievements
Rank 1
Gina asked on 20 Feb 2020, 12:23 AM

Hi,

When I try to select C:\ drive as the destination folder (a.k.a FileName property) in RadOpenFolderDialog, it gets set to the location of the application it's running.

This only happens for C:\ drive and no other drives (e.g. D:\) or the subfolders in C:\ drive (e.g. C:\path).

Also, when I select C from "This PC", the destination correctly gets set to C (first attached file), but when when I select C while in C drive it gets incorrectly set (second attached file).

 

Is there any known issue about this?

3 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 24 Feb 2020, 02:29 PM

Hello Gina,

Thank you for the provided pictures.

We were not aware of the described behavior, however I was able to replicate it on my end and I have logged it in our feedback portal, where you can track its progress: FileDialogs: FileName is sometimes wrong after opening a drive selected from the Tree Navigation Pane. I have also updated your telerik points as a thank you for bringing this to our attention.

For the time being, I am afraid that I cannot suggest a workaround for the described behavior as it is related to internal functionality of the control. You can consider introducing some logic, which checks whether the FileName is the same as the current directory where the application is running. Please, excuse me for any inconvenience caused. 

Don't hesitate to contact us again, if you have any other questions or concerns.

Regards,
Vladimir Stoyanov
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.
0
Heiko
Top achievements
Rank 1
Iron
Veteran
answered on 22 Mar 2020, 04:46 PM

Hello Vladimir,

I have a similar behavior of the control.

  1. Set InitialDirectory to a value
  2. Set FileName to a value
  3. Open RadSaveFileDialog, do not select a file
  4. Click on "Save"

What I expected was a filename consisting of InitialDirectory + FileName. Instead it returns the directory where the application runs. When I click on a file inside my InitialDirectory the right directory is returned. It does not matter if I choose a different directory; as long as I do not click on a file the wrong directory is returned.

Besides that on my German Windows 10 the file dates are displayed in the wrong format, not german and not what is set in Windows.

Regards
Heiko

0
Vladimir Stoyanov
Telerik team
answered on 25 Mar 2020, 04:35 PM

Hello Heiko,

Thank you for the provided steps. 

I tested the described behavior on my end with the 2020.1 218 version of our dlls, however I was not able to reproduce the same result. That is why I am attaching the sample project, which I used for testing. May I ask you to check it out and let me know, if I am missing something? If possible, you can modify it and send it back. This will hopefully allow me to investigate further and better assist you.

As for the format of the dates, you can change the application's culture to the desired one and set needed format. Additionally, you would have to set the IsLocalizationLanguageRespected property to False on the RadGridView inside the dialog. I have demonstrated this approach in the shared sample project. 

I am looking forward to your reply.

Regards,
Vladimir Stoyanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
FileDialogs
Asked by
Gina
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Heiko
Top achievements
Rank 1
Iron
Veteran
Share this question
or