Incorrect RadOpenFolderDialog.FileName for C:\ drive

4 posts, 0 answers
  1. Gina
    Gina avatar
    1 posts
    Member since:
    Feb 2020

    Posted 19 Feb Link to this post


    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?

  2. Vladimir Stoyanov
    Vladimir Stoyanov avatar
    701 posts

    Posted 24 Feb Link to this post

    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.

    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.
  3. Heiko
    Heiko avatar
    55 posts
    Member since:
    Nov 2018

    Posted 22 Mar in reply to Vladimir Stoyanov Link to this post

    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.


  4. Vladimir Stoyanov
    Vladimir Stoyanov avatar
    701 posts

    Posted 25 Mar Link to this post

    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.

    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.
Back to Top