Add localization support for RadFileDialogs.
SaveFileDialog does not open overwrite confirmation message box if the file name is typed with the default extension at the end. For example, you have "empty.txt" file on the desktop. You open SaveFileDialog, type empty, select TXT extension on the filters list on the bottom. Remove the .txt from the file name (if it is there) and press Save. Expected: Confirmation window for overwriting the file should be opened. Actual: No confirmation window opens.
Overwriting file with extension not registered in the file system but present in the Extensions Filter ComboBox might result in duplication of the extension in the resulting FileName. For example you have empty.stp file on your desktop. Choose the file with SaveFileDialog , chose the STP file extenion in the Filter combo box. Press Save. The resulting FileName of the dialog will be empty.stp.stp but it should be empty.stp. Available in LIB Version 2017.3.1225.
If extension filter contains *.TXT but the file is named File1.txt, it is filtered in the main pane of the File/FolderDialogs. It shouldn't be filtered, jut like it is in MS Win 32 File dialogs.
Open/Save File/Folder dialog with implicit styles. Change a theme dynamically by merging resource dictionary containing the styles for Office2016/ Office2016Touch / Fluent Theme. Show the dialog and open the details grid (view). XamlParseException occurs - cannot find the resource "GridViewValidationToolTipTemplate"
If you open a folder, but you doesn't select a child folder from the list shown in the explorer, when you click on the Open button the FileName property is empty. To work this around you can create a custom RadOpenFolderDialog and override its GetViewModel. Then expose a public property with the view model. And when you close the dialog, check the IsDirectirySelected property of the view model. If so, return the Path property of the view model. Otherwise, use the standard approach and get the folder via the dialog's FileName property. public class CustomOpenFolderDialog : RadOpenFolderDialog { public OpenFolderDialogViewModel ViewModel { get; internal set; } protected override OpenFolderDialogViewModel GetViewModel() { this.ViewModel = base.GetViewModel(); return this.ViewModel; } } --------------------------------- CustomOpenFolderDialog openFolderDialog = new CustomOpenFolderDialog(); openFolderDialog.Owner = this; openFolderDialog.ShowDialog(); if (openFolderDialog.DialogResult == true) { string folderName = String.Empty; if (!openFolderDialog.ViewModel.IsDirectorySelected) { folderName = openFolderDialog.ViewModel.Path; } else { folderName = openFolderDialog.FileName; } }
For example user might need to show files in FolderDialog or filter the folders somehow in all dialogs. Currently this could be achieved with custom style for OpenFolderDialogControl, binding the ListBox to CurrentParentDirectory.Children and use converter. By default this binding is to CurrentFileSystemObjects.
ExplorerControl or FileDialog is opened with StyleManager.ApplicationTheme = new Windows8TouchTheme(); On load exception is thrown: "Cannot find resource named 'BreadCrumbBarItemCustomStyle'. Resource names are case sensitive"
ExplorerControl is in DropDownContent of DropDownButton. Selecting multiple files in the explorer is not possible.
<telerik:RadDropDownButton DropDownWidth="400" DropDownHeight="400" VerticalAlignment="Center" Content="Dialog Button"> <telerik:RadDropDownButton.DropDownContent> <dialogs:ExplorerControl Layout="Details"/> </telerik:RadDropDownButton.DropDownContent> </telerik:RadDropDownButton> When the DropDown is opened Exception in FileBrowserGridView.cs is thrown.
For example Filter is "XAML CS Files (*.xaml.cs)|*.xaml.cs" MS Win32 OpenFileDialog filter files correctly to show only xaml.cs files. RadOpenFile/SaveFileDialog does not show the xaml.cs files which is wrong.
Hello.
I've created buttons that are bound to FileDialogCommands for sending commands to an ExplorerControl, as shown here:
https://docs.telerik.com/devtools/wpf/controls/radfiledialogs/features/commands
Everything works when the ExplorerControl is visible. However, if the ExplorerControl's Visibility is set to Collapsed (which I need based on a condition), the Command bindings on the buttons throw the below error:
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.FileDialogs.ExplorerControl.CanExecuteHelper(Object sender)
The UserControl that hosts the ExplorerControl is being imported through MEF. I don't know if that's a factor.
Either way, it looks like a null check might be needed for the InternalViewModel property.