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

Documentation on how FileExplorer determines how to open a file.

1 Answer 51 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 27 Mar 2014, 04:34 PM
We are using the FileExplorer in an internal web site, and using this code to open a file:

  function OnExplorerFileOpen(oExplorer, args) {
      if (!args.get_item().isDirectory()) {
          setTimeout(function () {
              var oWindowManager = oExplorer.get_windowManager();
              var previewWindow = oWindowManager.getActiveWindow(); // Gets the current active widow.
              try {
                  previewWindow.setSize(500, 500);
                  previewWindow.maximize();
              } catch (e) {
              }
          }, 100);   // Some timeout is required in order to allow the window to become active
      }
  }

How does the FileExplorer determine whether a file opens in a modal or as an attachment?  







1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 01 Apr 2014, 10:07 AM
Hello Peter,

This functionality is handled by the browser and it depends on the file type you are about to open. If you would like all files to be recognized as attachments, you can implement a custom generic handler, providing the MIME types for these specific file types. Please, refer this live demo for more details on the subject.

If you would like to force the direct opening of all file type, though - I am afraid that this cannot be achieved for the moment.

Regards,
Vessy
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
FileExplorer
Asked by
Peter
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or