How do I Set Default Explorer View in RadOpenFileDialog

2 posts, 0 answers
  1. Joe
    Joe avatar
    93 posts
    Member since:
    Nov 2017

    Posted 28 Sep Link to this post

    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?  
  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2511 posts

    Posted 30 Sep Link to this post

    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/.

Back to Top