I seem to be having multiple issues with the current version (2019.3.1023.45) of the RadFileDialog (OpenFile, SaveFile, and RadFilePathPicker).
These are:
1. Selecting the "^" for parent directory causes a "Object Referencing Error"
2. Select "This PC" or "Network" just starts the spinning icon with out them opening (I have left this for a considerable time with no result)
3. Manually changing the directory string does no refresh the files list.
4. Setting the RestoreDirectory to True does not seem to work as this always revers to the user directory
Example of the code:
Dim dlg As New RadOpenFileDialog
dlg.DefaultExt = ".xml"
dlg.Filter = "XML|*.xml|All Files|*.*"
dlg.Owner = Me
dlg.RestoreDirectory = True
dlg.ShowNetworkLocations = True
dlg.ShowDialog()
If dlg.DialogResult = True Then
...
End If
Any suggestions would be appreciated?
5 Answers, 1 is accepted
Hello Tony,
Could you please add more details regarding your scenario since issues 1-3 are not reproducible on our side and might be related to some customization or miss in the application setup ? More specifically - do you use no-xaml libraries and could you please check you have merged all required xaml files in App.xaml. Also, is there any chance you have custom styles for the controls in RadFileDialogs - TreeView, ListBox, Breadcrumb ?
Is it possible for you to send us an isolation that we can look at ?
Scenario 4 seems expected if you open new dialog instance every time. This property takes effect on single dialog instance.
Regards,
Petar Mladenov
Progress Telerik
Hi,
I'm using XML libraries on .NET 4.8.
I'm not applying any custom styles for any of the Telerik controls.
Please can you advise regarding merging all require XAML files into App.xaml?
Thanks
Tony
Hello Tony,
The following article explains the difference between XAML and No-Xaml binaries:
If you use no-xaml binaries, you can set the theme as described here: Setting a Theme. For FileDialogs you need to merge in App.xaml:
- System.Windows.xaml
- Telerik.Windows.Controls.xaml
- Telerik.Windows.Controls.Input.xaml
- Telerik.Windows.Controls.Navigation.xaml
- Telerik.Windows.Controls.GridView.xaml
- Telerik.Windows.Controls.FileDialogs.xaml
You can also check FileDialogs Getting Started article which shows the required dlls, you will notice there is a need of Telerik.Windows.Data.dll but because it contains no xaml files inside, there is no need to merge anything from it.
Regards,
Petar Mladenov
Progress Telerik
Hi,
Thanks for the information, It put me on the right track.
The problem turned out to be an old Themes DLL and once this was replace, everything is working as expected.
Thanks
Tony