Class RadOpenFileDialog
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadOpenFileDialog : FileDialogComponentBase, IMultiSelectable, IMultiFilesSelectable, IFileExtensionFilterable
Constructors
RadOpenFileDialog()
Declaration
public RadOpenFileDialog()
Properties
DefaultExt
Gets or sets a value that specifies the default extension string to use to filter the list of files that are displayed.
Declaration
public string DefaultExt { get; set; }
Property Value
System.
|
Implements
DereferenceLinks
Gets or sets a value indicating whether a file dialog returns either the location of the file referenced by a shortcut or the location of the shortcut file.
Declaration
public bool DereferenceLinks { get; set; }
Property Value
System.
|
EditingOptions
Determines how the files and folders in the Explorer
Declaration
public EditingOptions EditingOptions { get; set; }
Property Value
FileNames
Gets or sets a string containing the selected file names, including their paths.
Declaration
public IEnumerable<string> FileNames { get; }
Property Value
System.
|
Implements
Filter
Gets or sets the filter string that describes the list of extensions to filter by.
Declaration
public string Filter { get; set; }
Property Value
System.
|
Implements
FilterIndex
Gets or sets the currently selected extension filter from the extensions described in the Filter property. The index value of the first filter entry is 1.
Declaration
public int FilterIndex { get; set; }
Property Value
System.
|
Implements
MultiSelect
Gets or sets a value indicating whether multiple selection of files or folders is allowed.
Declaration
public bool MultiSelect { get; set; }
Property Value
System.
|
Implements
OpenFileDialogForm
Declaration
public RadOpenFileDialogForm OpenFileDialogForm { get; }
Property Value
OpenFileDialogViewModel
Declaration
public OpenFileDialogViewModel OpenFileDialogViewModel { get; }
Property Value
ReadOnlyChecked
Gets or sets a value indicating whether the read-only check box is selected.
Declaration
public bool ReadOnlyChecked { get; set; }
Property Value
System.
|
SafeFileNames
Gets or sets a string containing the selected file names, excluding their paths.
Declaration
public IEnumerable<string> SafeFileNames { get; }
Property Value
System.
|
Implements
ShowReadOnly
Gets or sets a value indicating whether the dialog contains a read-only check box.
Declaration
public bool ShowReadOnly { get; set; }
Property Value
System.
|
Methods
CreateFileDialogForm()
Declaration
protected override FileDialogFormBase CreateFileDialogForm()
Returns
Overrides
OpenFile()
Opens a read-only stream for the file that is selected by the user using RadOpenFileDialog />.
Declaration
[SecurityCritical]
public Stream OpenFile()
Returns
System. A new System. |
Exceptions
System. Selected file is null. |
System. Selected file is empty string, contains only white space, contains one or more invalid characters, or refers to a non-file device. |
System. Selected file refers to a non-file device. |
System. Selected file cannot be found, such as when mode is FileMode.Truncate or FileMode.Open, and the file specified by path does not exist. The file must already exist in these modes. |
System. An I/O error occurred or the stream has been closed. |
System. The caller does not have the required permission. |
System. Selected file is invalid, such as being on an unmapped drive. |
System. The access requested is not permitted by the operating system for the specified path, such as when access is Write or ReadWrite and the file or directory is set for read-only access. |
System. The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. |
System. The specified mode contains an invalid value. |
Explicit Interface Implementations
IMultiSelectable.SelectedFileSystemInfoWrappers
Declaration
ObservableCollection<FileSystemInfoWrapper> IMultiSelectable.SelectedFileSystemInfoWrappers { get; }
Returns
System.
|