OpenFileDialog multiple files

0
0

Hi

Below is the sample code I have for OpenFileDialog.

var webOpenFileDialog = new OpenFileDialog
{
Multiselect = true,
Title = “Select Files”,
};

webOpenFileDialog.Roots.Add(new FileSystemProvider(“C:”,”C:”));

Is there any option the restore the directory for the previously used directory for OpenFileDialog? (Similar to RestoreDirectory in windows)

As you see I have set Multiselect = true,  but when I select multiple files and click OK it gives error – “File C:\\Users\\<userName>\\Documents” does not exist. Verify that the correct filename was given.

Am I missing anything to set here for enabling multiselection. Please let me know how I can fix this.

 

Thanks

Praveena

 

  • You must to post comments
0
0

Hi Praveena,

issue #2685 is fixed in our latest Wisej development build (2.2.54).

Best regards
Frank

  • You must to post comments
0
0

Hi Praveena,

The issue has been fixed and will be available in the next build.

Regards,

Levie

  • You must to post comments
0
0

Hi Praveena,

Thanks for reporting the issue with the root. It’s logged as #2685. As a workaround, you should be able to add a root without the “:” at the end of it (i.e. “C” instead of “C:”).

In regards to restoring the working directory, we don’t have that feature yet, but I can log it as an enhancement.

If you need this feature, you have the option to build a custom FileDialogUI that will let you control all aspects of the picker (see DialogTemplate).

 

Let me know if you have any other questions!

Regards,

Levie

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.