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

Quick Access Items on RadOpenFolderDialog

1 Answer 83 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Veteran
Paul asked on 08 Dec 2020, 12:33 PM
If I have quick access items listed on the Windows File Explorer, is there any way to get them to show up on RadOpenFolderDialog?

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 08 Dec 2020, 02:12 PM

Hello, Paul,

File dialogs provide an option to specify a list of directories to be displayed to the left of the main pane similar to Windows' Quick Access view. To enable this functionality, you should add a list of directories to the control's CustomPlaces collection. More information you can find here: https://docs.telerik.com/devtools/winforms/controls/file-dialogs/features/custom-places 

RadOpenFolderDialog openFolderDialog = new RadOpenFolderDialog();
openFolderDialog.CustomPlaces.Add(@"C:\Program Files\");
openFolderDialog.CustomPlaces.Add(@"C:\Program Files (x86)\Progress");
openFolderDialog.CustomPlaces.Add(@"C:\Windows\System32");
openFolderDialog.CustomPlaces.Add(@"C:\Windows\Microsoft.NET");
openFolderDialog.CustomPlaces.Add(@"C:\Windows\Globalization");
openFolderDialog.CustomPlaces.Add(@"C:\Windows\Help");
openFolderDialog.ShowDialog();

I hope this helps. Should you have other questions do not hesitate to contact me.

Regards,
Nadya
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/.

Tags
FileDialogs
Asked by
Paul
Top achievements
Rank 1
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or