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

How do I Set Default Explorer View in RadOpenFileDialog

1 Answer 186 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
Joe asked on 28 Sep 2020, 02:45 PM
Every time I open the RadOpenFiledialog -- whether it be directly or indirectly via the RadFilePathPicker -- The dialog shows files in explorer's "Small Icons" view.  I have to manually change it to "Details" view. 

How can I set this in code when I am opening the dialog?  

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 30 Sep 2020, 05:28 AM

Hello Joe,

To achieve your requirement, you can set the InitialSelectedLayout property of the dialog to Details.

dialog.InitialSelectedLayout = Telerik.Windows.Controls.FileDialogs.LayoutType.Tiles; 

When using the RadFilePathPicker control, you can get the shown dialog via the DialogOpening event. In the handler, you can get the dialog via the Dialog property of the arguments, and set its initial layout.

I hope this helps. If you have other questions, please let me know.

Regards,
Martin Ivanov
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
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Martin Ivanov
Telerik team
Share this question
or