MVC5 Classic
Disable File Operation

In wijfileexplorer, by default, the file explorer displays all the files and folders. However, a user you can customize the type of files to be displayed by using the searchPatterns option.

In Source View

Complete the following steps:

  1. Navigate to the Solution Explorer, expand the Shared folder inside the Views folder, and double-click _Layout to open the file.
  2. Add the following markup within the <body> tags of the page, just after @RenderBody():
     <div id="fileexplorer" style="width:750px;height:350px"></div>
    

  3. Add the following script between the <head></head> tags initialize the widget. Set the searchPatterns option, as shown in the script.
      <script type="text/javascript">     
                $(document).ready(function () {
                    $("#fileexplorer").wijfileexplorer({
                        actionUri: "fileexplorer.ashx",
                        viewPaths: ["~/Content/FileExplorer/Example"],
                        EnableCopy: false,
                        EnableOpenFile: false,
                        EnableCreateNewFolder: false
                        });
                    }); 
            </script>      
    
    
  4. Press F5 to run the project.

What You've Accomplished

 

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback