This is a migrated thread and some comments may be shown as answers.

Multiple Issues with RadFileDialog

5 Answers 372 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Tony Kennard
Top achievements
Rank 1
Tony Kennard asked on 26 Nov 2019, 04:56 PM

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

Sort by
0
Petar Mladenov
Telerik team
answered on 29 Nov 2019, 11:39 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Tony Kennard
Top achievements
Rank 1
answered on 03 Dec 2019, 02:09 PM

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

0
Tony Kennard
Top achievements
Rank 1
answered on 03 Dec 2019, 02:10 PM
Sorry that was meant to be XAML Libraries.
0
Accepted
Petar Mladenov
Telerik team
answered on 03 Dec 2019, 05:05 PM

Hello Tony,

The following article explains the difference between XAML and No-Xaml binaries:

    Xaml vs NoXaml

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Tony Kennard
Top achievements
Rank 1
answered on 04 Dec 2019, 09:09 AM

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

Tags
FileDialogs
Asked by
Tony Kennard
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Tony Kennard
Top achievements
Rank 1
Share this question
or