Edit this page

Common

This articles shows the minor features shared between all file dialogs - RadOpenFileDialog, RadSaveFileDialog and RadOpenFolderDialog.

Setting initial directory

All the dialog controls expose a InitialDirectory property that determines the directory that will be opened when the dialog shows.

[C#] Example 1: Setting initial directory

RadSaveFileDialog saveFileDialog = new RadSaveFileDialog(); 
saveFileDialog.Owner = this;

saveFileDialog.InitialDirectory = @"C:\Temp\";

saveFileDialog.ShowDialog();    

Setting the initial layout of the files

All the dialog controls expose a InitialSelectedLayout property that determines the initial layout of the list with the files

[C#] Example 2: Setting initial layout

RadSaveFileDialog saveFileDialog = new RadSaveFileDialog(); 
saveFileDialog.Owner = this;

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

saveFileDialog.ShowDialog();    

Figure 1: RadOpenFileDialog in Tile view mode

RadOpenFileDialog in Tile view mode

The layout is determined by the LayoutType enum that provides the following modes:

  • SmallIcons

  • MediumIcons

  • LargeIcons

  • ExtraLargeIcons

  • List

  • Tiles

  • Details

See Also