Your search did not match any results.
File Manager

Entity Framework ORM

The File Manager widget allows you to manage file system items that use the Entity Framework ORM to link to a database. You can use the Remote File Provider to connect to the file system on the client side. To process the widget's HTTP requests on the server, create your own file provider, which implements the IFileProvider interface.

Copy to CodeSandBox
<dx-file-manager id="fileManager" [fileProvider]="remoteProvider" currentPath="Documents/Reports" [allowedFileExtensions]="allowedFileExtensions" [customizeDetailColumns]="customizeDetailColumns" height="550"> <dxo-permissions create="true" copy="true" move="true" remove="true" rename="true"> </dxo-permissions> </dx-file-manager>
import { NgModule, Component, enableProdMode } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { DxFileManagerModule } from 'devextreme-angular'; import RemoteFileProvider from 'devextreme/ui/file_manager/file_provider/remote'; if (!/localhost/.test( { enableProdMode(); } @Component({ styleUrls: ['app/app.component.css'], selector: 'demo-app', templateUrl: 'app/app.component.html', preserveWhitespaces: true }) export class AppComponent { allowedFileExtensions: string[]; remoteProvider: RemoteFileProvider; constructor() { this.allowedFileExtensions = []; this.remoteProvider = new RemoteFileProvider({ endpointUrl: "" }); } customizeDetailColumns(columns){ var fileSizeColumn = columns.filter(function(c) { return c.dataField === "fileSize"; })[0]; columns.splice(columns.indexOf(fileSizeColumn), 1); var modifiedColumn = columns.filter(function(c) { return c.dataField === "dateModified"; })[0]; modifiedColumn.caption = "Modified"; columns.push({ caption: "Created", dataField: "created", dataType: "date" }); columns.push({ visibleIndex: 2, caption: "Modified By", dataField: "modifiedBy" }); return columns; } } @NgModule({ imports: [ BrowserModule, DxFileManagerModule ], declarations: [AppComponent], bootstrap: [AppComponent] }) export class AppModule { } platformBrowserDynamic().bootstrapModule(AppModule);
// In real applications, you should not transpile code in the browser. You can see how to create your own application with Angular and DevExtreme here: // System.config({ transpiler: 'ts', typescriptOptions: { module: "system", emitDecoratorMetadata: true, experimentalDecorators: true }, meta: { 'typescript': { "exports": "ts" }, }, paths: { 'npm:': '' }, map: { 'ts': 'npm:plugin-typescript@8.0.0/lib/plugin.js', 'typescript': 'npm:typescript@3.4.5/lib/typescript.js', '@angular': 'npm:@angular', 'tslib': 'npm:tslib/tslib.js', 'rxjs': 'npm:rxjs', 'devextreme': 'npm:devextreme@19.2', 'jszip': 'npm:jszip@3.1.3/dist/jszip.min.js', 'quill': 'npm:quill@1.3.7/dist/quill.js', 'devexpress-diagram': 'npm:devexpress-diagram@0.1.53', 'devexpress-gantt': 'npm:devexpress-gantt@0.0.27', 'devextreme-angular': 'npm:devextreme-angular@19.2' }, packages: { 'app': { main: './app.component.ts', defaultExtension: 'ts' }, 'devextreme': { defaultExtension: 'js' }, }, packageConfigPaths: [ "npm:*/package.json", "npm:@angular/*/package.json", "npm:@angular/common/*/package.json", "npm:rxjs/operators/package.json", "npm:devextreme-angular@19.2/*/package.json", "npm:devextreme-angular@19.2/ui/*/package.json", ] });
<!DOCTYPE html> <html xmlns=""> <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <link rel="stylesheet" type="text/css" href="" /> <link rel="stylesheet" type="text/css" href="" /> <link rel="stylesheet" type="text/css" href="" /> <script src=""></script> <script src=""></script> <script src=""></script> <script src=""></script> <script src="config.js"></script> <script> System.import('app').catch(console.error.bind(console)); </script> </head> <body class="dx-viewport"> <div class="demo-container"> <demo-app>Loading...</demo-app> </div> </body> </html>