Completed
Last Updated: 03 Aug 2021 16:21 by ADMIN
Release R3 2021
Dominik
Created on: 26 Jul 2021 08:46
Category: UI for WinForms
Type: Bug Report
0
RadBrowseEditor: initialdirectory not working when DialogType is RadOpenFolderDialog

Hello support,

 

i use the radBrowseEditor.

 

Here the code:


        private readonly string ActualPath_LiteDB = "";

        public F_ApplicationsSettings()
        {
            InitializeComponent();

            //set up actual paths
            ActualPath_LiteDB = Settings.PathToLogLiteDB;
            radBrowseEditor_db_path.Value = ActualPath_LiteDB;

            this.Text = F_Translations.GetTranslationText("settings");
        }

When i set the DialogType to FolderBrowseDialog the initial directory the its working:

But if i set it the DialogType to RadOpenFolderDialog its not working. Its always showing the Desktop folder:

 

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 26 Jul 2021 10:09
Hello, Dominik,


Following the provided information I was able to reproduce the undesired behavior that you are facing. I have approved the bug report.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to set the RadOpenFolderDialog.InitialDirectory property:

        public RadForm1()
        {
            InitializeComponent();

            this.radBrowseEditor1.DialogType = BrowseEditorDialogType.RadOpenFolderDialog;
            this.radBrowseEditor1.Value = @"C:\Projects";

            RadOpenFolderDialog dialog = this.radBrowseEditor1.BrowseDialog as RadOpenFolderDialog;
            dialog.InitialDirectory = this.radBrowseEditor1.Value;
        }

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.