Some files that can be seen in the Windows Explorer are missing from the ExplorerControl of the file dialogs. This happens because of a silent ArgumentOutOfRangeException thrown for a corrupted file that doesn't have a "Date Modified" attribute set. This breaks the loading of the following files in the directory.
Here are the exception details:
System.ArgumentOutOfRangeException: Not a valid Win32 FileTime. Parameter name: fileTime at System.DateTime.FromFileTimeUtc(Int64 fileTime) at System.IO.FileSystemInfo.get_LastWriteTimeUtc() at System.IO.FileSystemInfo.get_LastWriteTime() at Telerik.Windows.Controls.FileDialogs.FileSystemInfoWrapper..ctor(FileSystemInfoWrapperFactoryBase factory, FileSystemInfo fileSystemInfo) at Telerik.Windows.Controls.FileDialogs.FileInfoWrapper..ctor(FileSystemInfoWrapperFactoryBase factory, FileInfo info) at Telerik.Windows.Controls.FileDialogs.FileSystemInfoWrapperFactory.TryGetConcreteFileSystemInfoWrapper(FileSystemInfo fileSystemInfo, FileSystemInfoWrapper& fileSystemInfoWrapper) at Telerik.Windows.Controls.FileDialogs.DirectoryInfoWrapper.LoadFiles(DirectoryInfo directoryInfo) at Telerik.Windows.Controls.FileDialogs.DirectoryInfoWrapper.ReloadChildren()
Using RadOpenFileDialog reports a lot of binding errors. #26 seems to happen all the time, whereas #40 is related to the length of the initial directory.
The dialog is working, but those errors are really disturbing. The more false binding errors we get, the higher the possibility is that we miss real errors. Suppressing them by setting the error level to Critical is not a solution, as it will suppress real errors as well.
System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadWatermarkTextBox'
System.Windows.Data Warning: 40 : BindingExpression path error: 'IsHidden' property not found on 'object' ''OpenFileDialogViewModel' (HashCode=39129256)'. BindingExpression:Path=IsHidden; DataItem='OpenFileDialogViewModel' (HashCode=39129256); target element is 'RadBreadcrumbBarItem' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Warning: 40 : BindingExpression path error: 'IsSystemHiddenActual' property not found on 'object' ''OpenFileDialogViewModel' (HashCode=39129256)'. BindingExpression:Path=IsSystemHiddenActual; DataItem='OpenFileDialogViewModel' (HashCode=39129256); target element is 'RadBreadcrumbBarItem' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Warning: 40 : BindingExpression path error: 'IsHidden' property not found on 'object' ''OpenFileDialogViewModel' (HashCode=39129256)'. BindingExpression:Path=IsHidden; DataItem='OpenFileDialogViewModel' (HashCode=39129256); target element is 'RadBreadcrumbBarItem' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Warning: 40 : BindingExpression path error: 'IsSystemHiddenActual' property not found on 'object' ''OpenFileDialogViewModel' (HashCode=39129256)'. BindingExpression:Path=IsSystemHiddenActual; DataItem='OpenFileDialogViewModel' (HashCode=39129256); target element is 'RadBreadcrumbBarItem' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadBreadcrumbBarItem'
To reproduce this behavior you need the following settings.
- Set the display language of your Windows to Italian.
- Use a RadOpenFileDialog.
- Set its Filter. For example, you can filter to show only Excel files.
- Change the layout type to Details.
In this case the folders in the opened direction disappears.
This is reproducible only with display language of the Windows set to a language different than English. It was originally reproduced with French.
If you set the initial directory to a network dir (ex: \\MyPcName\SharedFolder2\MyFiles), and open the dialog, initially the correct folder is loaded. However, if you wait several seconds without doing anything, the currently opened directory automatically changes to the root "Network" dir.
On Windows Server 2012 R2, the Search field in the ExplorerControl doesn't appear to work. This is observable using the Demo app.
When you type into the Search box, the main pane clears of all file/folder entries, but the matching results never appear.
(Note: Windows Server 2012 R2 isn't available in the OS box, so I chose 2008.)
RadOpenFileDialog or RadSaveFileDialog with Filter, for example fileDialog.Filter = "Excel Worksheets|*.xlsx;*.xls|All Files|*.*"; fileDialog.FilterIndex = 1; This should filter the files in MainPane on load to xls files only (index is 1-based). However, filter is not applied on load - regression in R3 2018.
The error message appears after you do several operations with the dialog and then call the Directory.Move() method. The message is "Access to the path <path> is denied".
In R2 2018 Release we released the standalone usage of ExplorerControl and the CurrentDirectoryPath works only as a setter. When user sets it- it navigates to the directory with the given path. It would be useful for the clients to have this property with working getter - to provide the path of the current folder.