skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadOpenFileDialogForm

Represents a dialog form that allows users to select one or more files for opening operations. This form provides a complete file browsing interface with support for multiple file selection, filtering, and various file system navigation features including network locations and custom places.

Inheritance
System.Object
RadFormControlBase
RadForm
FileDialogFormBase
RadOpenFileDialogForm
Inherited Members
FileDialogFormBase.OnLoad(EventArgs)
FileDialogFormBase.ShowDialog()
FileDialogFormBase.ShowDialog(IWin32Window)
FileDialogFormBase.ShowDialogCore(IWin32Window, Boolean)
FileDialogFormBase.NotifyIViewModelChangedListeners()
FileDialogFormBase.GetDialogViewModelCustomPlaces()
FileDialogFormBase.GetDialogViewModelInitialDirectory()
FileDialogFormBase.SaveStateOnAccept()
FileDialogFormBase.OnKeyDown(KeyEventArgs)
FileDialogFormBase.OnClosed(EventArgs)
FileDialogFormBase.OnPressedCancel()
FileDialogFormBase.OnThemeChanged()
FileDialogFormBase.ViewModelChangedListeners
FileDialogFormBase.FileName
FileDialogFormBase.ShowNetworkLocations
FileDialogFormBase.InitialDirectory
FileDialogFormBase.EditingOptions
FileDialogFormBase.RestoreDirectory
FileDialogFormBase.CustomPlaces
FileDialogFormBase.ExpandToCurrentDirectory
FileDialogFormBase.ShowHiddenFiles
FileDialogFormBase.InitialSelectedLayout
FileDialogFormBase.FileSystemInfoWrapperFactory
FileDialogFormBase.DialogViewModel
FileDialogFormBase.ExceptionRaised
FileDialogFormBase.DirectoryRequesting
FileDialogFormBase.DirectoryNavigating
FileDialogFormBase.ShellContextMenuOpening
RadForm.ScrollToControl(Control)
RadForm.EndInit()
RadForm.ProcessCaptureChangeRequested(RadElement, Boolean)
RadForm.InitializeFormBehavior()
RadForm.SetIconPrimitiveVisibility(Boolean)
RadForm.Text
RadForm.ThemeClassName
RadForm.FormElement
RadForm.IconScaling
RadForm.AllowTheming
RadForm.ShowIcon
RadFormControlBase.newBounds
RadFormControlBase.oldDpi
RadFormControlBase.currentDpi
RadFormControlBase.isBehaviorPrepared
RadFormControlBase.controlIsInitializingRootComponent
RadFormControlBase.isPainting
RadFormControlBase.Construct()
RadFormControlBase.GetUseNewLayout()
RadFormControlBase.OnCreateControl()
RadFormControlBase.LoadElementTree()
RadFormControlBase.LoadElementTree(Size)
RadFormControlBase.OnLoad(Size)
RadFormControlBase.OnShown(EventArgs)
RadFormControlBase.OnPaint(PaintEventArgs)
RadFormControlBase.OnPaintBackground(PaintEventArgs)
RadFormControlBase.ProcessDialogKey(Keys)
RadFormControlBase.UpdateDefaultButton()
RadFormControlBase.ShouldSerializeBackColor()
RadFormControlBase.OnBackColorChanged(EventArgs)
RadFormControlBase.ShouldSerializeForeColor()
RadFormControlBase.OnForeColorChanged(EventArgs)
RadFormControlBase.ShouldSerializeFont()
RadFormControlBase.OnFontChanged(EventArgs)
RadFormControlBase.OnParentChanged(EventArgs)
RadFormControlBase.ShouldSerializeProperty(RadProperty)
RadFormControlBase.ResetFormBehavior(Boolean)
RadFormControlBase.WndProc(Message)
RadFormControlBase.PerformDesignModeLocationCorrection(Message)
RadFormControlBase.CallBaseWndProc(Message)
RadFormControlBase.IComponentTreeHandler.GetAmbientPropertyValue(RadProperty)
RadFormControlBase.IComponentTreeHandler.OnAmbientPropertyChanged(RadProperty)
RadFormControlBase.IComponentTreeHandler.OnFocusRequested(RadElement)
RadFormControlBase.IComponentTreeHandler.OnCaptureChangeRequested(RadElement, Boolean)
RadFormControlBase.ProcessFocusRequested(RadElement)
RadFormControlBase.OnNotifyPropertyChanged(String)
RadFormControlBase.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadFormControlBase.CreateChildItems(RadElement)
RadFormControlBase.CreateRootElement()
RadFormControlBase.OnThemeNameChanged(ThemeNameChangedEventArgs)
RadFormControlBase.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadFormControlBase.OnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadFormControlBase.OnHandleCreated(EventArgs)
RadFormControlBase.OnVisibleChanged(EventArgs)
RadFormControlBase.IComponentTreeHandler.InitializeRootElement(RootRadElement)
RadFormControlBase.IComponentTreeHandler.CreateRootElement()
RadFormControlBase.IComponentTreeHandler.CreateChildItems(RadElement)
RadFormControlBase.IComponentTreeHandler.CallOnThemeNameChanged(ThemeNameChangedEventArgs)
RadFormControlBase.OnAutoSizeChanged(EventArgs)
RadFormControlBase.OnLayout(LayoutEventArgs)
RadFormControlBase.CreateHandle()
RadFormControlBase.SetClientSizeCore(Int32, Int32)
RadFormControlBase.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
RadFormControlBase.GetPreferredSize(Size)
RadFormControlBase.InvalidateIfNotSuspended()
RadFormControlBase.IComponentTreeHandler.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadFormControlBase.IComponentTreeHandler.CallOnMouseCaptureChanged(EventArgs)
RadFormControlBase.IComponentTreeHandler.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadFormControlBase.InvalidateElement(RadElement)
RadFormControlBase.InvalidateElement(RadElement, Rectangle)
RadFormControlBase.AddInvalidatedRect(Rectangle)
RadFormControlBase.SuspendUpdate()
RadFormControlBase.ResumeUpdate()
RadFormControlBase.ResumeUpdate(Boolean)
RadFormControlBase.RegisterHostedControl(RadHostItem)
RadFormControlBase.UnregisterHostedControl(RadHostItem, Boolean)
RadFormControlBase.ControlDefinesThemeForElement(RadElement)
RadFormControlBase.OnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadFormControlBase.IComponentTreeHandler.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadFormControlBase.ControlThemeChangedCallback()
RadFormControlBase.IComponentTreeHandler.GetShowFocusCues()
RadFormControlBase.InvokeLayoutCallback(LayoutCallback)
RadFormControlBase.BeginInit()
RadFormControlBase.HandleDpiChanged()
RadFormControlBase.ScaleControl(SizeF, BoundsSpecified)
RadFormControlBase.SuspendDpiScaling()
RadFormControlBase.ResumeDpiScaling()
RadFormControlBase.OnWm_SettingChange(Message)
RadFormControlBase.IComponentTreeHandler.get_Name()
RadFormControlBase.IComponentTreeHandler.set_Name(String)
RadFormControlBase.Site
RadFormControlBase.AnalyticsName
RadFormControlBase.EnableAnalytics
RadFormControlBase.IsLoaded
RadFormControlBase.MaximumSize
RadFormControlBase.MinimumSize
RadFormControlBase.FormBorderStyle
RadFormControlBase.FormBehavior
RadFormControlBase.Behavior
RadFormControlBase.SmallImageList
RadFormControlBase.FocusedElement
RadFormControlBase.AllowShowFocusCues
RadFormControlBase.ShowItemToolTips
RadFormControlBase.CommandBindings
RadFormControlBase.EnableKeyMap
RadFormControlBase.WindowsSettings
RadFormControlBase.BackColor
RadFormControlBase.ForeColor
RadFormControlBase.Font
RadFormControlBase.CreateParams
RadFormControlBase.IsDesignMode
RadFormControlBase.ElementTree
RadFormControlBase.IComponentTreeHandler.Behavior
RadFormControlBase.IComponentTreeHandler.ThemeClassName
RadFormControlBase.ThemeName
RadFormControlBase.RootElement
RadFormControlBase.IsUpdateSuspended
RadFormControlBase.IComponentTreeHandler.SmallImageList
RadFormControlBase.ImageList
RadFormControlBase.SmallImageScalingSize
RadFormControlBase.ImageScalingSize
RadFormControlBase.IComponentTreeHandler.Initializing
RadFormControlBase.LayoutManager
RadFormControlBase.IsInitialized
RadFormControlBase.IsPerformingScale
RadFormControlBase.HasOwnToolbar
RadFormControlBase.IsDpiScalingSuspended
RadFormControlBase.ThemeNameChanged
RadFormControlBase.ToolTipTextNeeded
RadFormControlBase.ScreenTipNeeded
RadFormControlBase.Initialized
RadFormControlBase.PropertyChanged
RadFormControlBase.WindowsThemeChanged
Namespace: Telerik.WinControls.FileDialogs
Assembly: Telerik.WinControls.UI.dll

Syntax

public class RadOpenFileDialogForm : FileDialogFormBase, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, IInvokeSelectedFileSystemObjects, IMultiSelectable, IMultiFilesSelectable, IFileExtensionFilterable

Constructors

RadOpenFileDialogForm()

Initializes a new instance of the RadOpenFileDialogForm class. Sets up the form components, localizes user interface strings, and configures the explorer control for file browsing operations.

Declaration
public RadOpenFileDialogForm()

Properties

DefaultExt

Gets or sets the default file extension that will be appended to file names when no extension is specified. The extension should include the leading period (e.g., ".txt"). If set to null or empty, no default extension is applied.

Declaration
public string DefaultExt { get; set; }
Property Value
System.String

Implements
IFileExtensionFilterable.DefaultExt

DereferenceLinks

Gets or sets a value indicating whether the dialog resolves shortcut links to their target files. When true, selecting a shortcut (.lnk) file returns the path to the target file. When false, selecting a shortcut returns the path to the shortcut file itself.

Declaration
public bool DereferenceLinks { get; set; }
Property Value
System.Boolean

ExplorerControl

Gets the ExplorerControl that provides the main file browsing interface for the dialog. This control handles file system navigation, file selection, and display of files and folders.

Declaration
public override ExplorerControl ExplorerControl { get; }
Property Value
ExplorerControl

Overrides
FileDialogFormBase.ExplorerControl

FileNames

Gets or sets a collection of full file paths for all files selected by the user. When MultiSelect is false, this collection contains at most one item. When MultiSelect is true, this collection contains all selected file paths.

Declaration
public IEnumerable<string> FileNames { get; protected set; }
Property Value
System.Collections.Generic.IEnumerable<System.String>

Implements
IMultiFilesSelectable.FileNames

Filter

Gets or sets the file name filter string that determines which files are displayed in the dialog. The filter string contains filter pairs separated by the pipe character, where each pair consists of a description and pattern. For example: "Text files (.txt)|.txt|All files (.)|."

Declaration
public string Filter { get; set; }
Property Value
System.String

Implements
IFileExtensionFilterable.Filter

FilterIndex

Gets or sets the index of the currently selected filter in the file type drop-down list. The index is one-based, where 1 corresponds to the first filter in the Filter string. Setting this to 0 or an invalid index will select the first available filter.

Declaration
public int FilterIndex { get; set; }
Property Value
System.Int32

Implements
IFileExtensionFilterable.FilterIndex

MultiSelect

Gets or sets a value indicating whether multiple files can be selected simultaneously in the dialog. When enabled, users can select multiple files using Ctrl+click or Shift+click, and the selected files can be accessed through FileNames.

Declaration
public bool MultiSelect { get; set; }
Property Value
System.Boolean

Implements
IMultiSelectable.MultiSelect

OpenFileDialogViewModel

Gets the view model that manages the data and business logic for the open file dialog. The view model provides access to the underlying data structure, state management, and operations for the dialog.

Declaration
public OpenFileDialogViewModel OpenFileDialogViewModel { get; }
Property Value
OpenFileDialogViewModel

ReadOnlyChecked

Gets or sets a value indicating whether the read-only checkbox in the dialog is currently checked. When checked, this typically indicates that the selected file should be opened in read-only mode. This property only has an effect when ShowReadOnly is set to true.

Declaration
public bool ReadOnlyChecked { get; set; }
Property Value
System.Boolean

SafeFileNames

Gets or sets a collection of file names (without path information) for all files selected by the user. This property provides only the file names and extensions, excluding the directory path. The collection corresponds to the files in FileNames but contains only the file names.

Declaration
public IEnumerable<string> SafeFileNames { get; protected set; }
Property Value
System.Collections.Generic.IEnumerable<System.String>

Implements
IMultiFilesSelectable.SafeFileNames

ShowReadOnly

Gets or sets a value indicating whether the dialog displays a read-only checkbox. When enabled, users can indicate their intention to open the selected file in read-only mode. The state of this checkbox can be accessed through the ReadOnlyChecked property.

Declaration
public bool ShowReadOnly { get; set; }
Property Value
System.Boolean

Methods

CanPressedCancelExecute()

Determines whether the cancel operation can be executed based on the current state of the dialog. This method handles special cases such as exiting edit mode for search text boxes and breadcrumb controls.

Declaration
protected override bool CanPressedCancelExecute()
Returns
System.Boolean

True if the cancel operation should proceed; otherwise, false.

Overrides
FileDialogFormBase.CanPressedCancelExecute()

Dispose(Boolean)

Clean up any resources being used.

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

true if managed resources should be disposed; otherwise, false.

Overrides
RadForm.Dispose(Boolean)

GetViewModel()

Creates and configures a new OpenFileDialogViewModel instance for this dialog form. This method sets up the view model with the appropriate initial directory, custom places, filtering options, and other configuration settings required for the open file dialog functionality.

Declaration
protected virtual OpenFileDialogViewModel GetViewModel()
Returns
OpenFileDialogViewModel

A configured OpenFileDialogViewModel instance ready for use with this dialog.

InvokeSelectedFileSystemObjects()

Invokes the selected file system objects operation and attempts to execute the open command if conditions are met. This method is called when the user triggers a file selection action through various UI interactions.

Declaration
public override void InvokeSelectedFileSystemObjects()
Overrides
FileDialogFormBase.InvokeSelectedFileSystemObjects()

LocalizeStrings()

Localizes all user interface strings displayed in the dialog form using the current localization provider. This method sets the appropriate localized text for labels, buttons, and other UI elements.

Declaration
protected virtual void LocalizeStrings()

SetupDialogContent(Boolean)

Sets up the dialog content and configures UI elements based on the current view model state. This method handles the visibility of filter controls, read-only checkbox, and other dialog-specific elements.

Declaration
protected override void SetupDialogContent(bool addWatcher = true)
Parameters
System.Boolean addWatcher

Indicates whether to add file system watchers for monitoring directory changes.

Overrides
FileDialogFormBase.SetupDialogContent(Boolean)

Explicit Interface Implementations

IMultiSelectable.SelectedFileSystemInfoWrappers

Gets the collection of selected file system information wrappers for multi-selection scenarios. This property provides access to the underlying file system objects that represent the selected items.

Declaration
ObservableCollection<FileSystemInfoWrapper> IMultiSelectable.SelectedFileSystemInfoWrappers { get; }
Returns
System.Collections.ObjectModel.ObservableCollection<FileSystemInfoWrapper>

Implements
IMultiSelectable.SelectedFileSystemInfoWrappers

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.