forked from syncfusion/ej2-aspnetmvc-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDragAndDrop.cshtml
44 lines (40 loc) · 2.24 KB
/
DragAndDrop.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@using Syncfusion.EJ2
@using Syncfusion.EJ2.FileManager
@using EJ2MVCSampleBrowser.Models
@section ControlsSection{
<div class="control-section">
<div class="sample-container">
<!-- File Manager Drag and Drop feature sample -->
@Html.EJS().FileManager("filemanager").AjaxSettings(
new Syncfusion.EJ2.FileManager.FileManagerAjaxSettings {
Url = "FileOperations",
DownloadUrl = "Download",
UploadUrl = "Upload",
GetImageUrl = "GetImage"
}).AllowDragAndDrop(true).Render()
</div>
</div>
}
@section ActionDescription{
<div id="action-description">
<p>This sample demonstrates the drag-and-drop feature of the File Manager. To drag and drop the file, select and drag a desired file or folder and drop it into the target folder. The File Manager component allows users to drag any file and drop it on any other folder in the same or different folder using the <code><a href="https://ej2.syncfusion.com/documentation/api/file-manager/#allowdraganddrop" target="_blank">allowDragAndDrop</a></code> property.</p>
</div>
}
@section Description{
<div id="description">
<p>The <b>File Manager</b> component is used to explore a file system through a web application, similar to the windows explorer for windows. It supports all the basic file operations such as create, rename, delete, refresh and so on.</p>
<p>
<b>Note: </b>File Manager's upload functionality is restricted in the online demo. If you need to test upload functionality, please install
<a target="_blank" href="https://www.syncfusion.com/downloads">Syncfusion Essential Studio </a>on your machine and run the demo.
</p>
</div>
}
@section Meta{
<meta name="description" content="This example demonstrates the Drag and Drop in ASP.NET MVC File Manager control. Explore here for more details."/>
}
@section Title{
<title>ASP.NET MVC File Manager Drag and Drop Example - Syncfusion Demos </title>
}
@section Header{
<h1 class='sb-sample-text'>Example of Drag and Drop in ASP.NET MVC File Manager Control</h1>
}