You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetmvc/FileExplorer/How-To.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,29 +12,29 @@ keywords: FileExplorer, Syncfusion, EJ MVC FileExplorer, UG document, How To
12
12
13
13
In controller page, we have specified some built-in classes at "**FileActionDefault**" action method. It helps to perform the server side operation of FileExplorer and you can find the details about these classes at below.
14
14
15
-
When you have made AJAX request on client-side, "FileActionDefault" method is triggered in controller part. Here received AJAX data will be stored in "[FileExplorerParams](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerParams.html#)" parameter. This "FileActionDefault" method finds out the specific operations using the "ActionType" property and calls the corresponding built-in methods of "[FileExplorerOperations](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html#)" class.
15
+
When you have made AJAX request on client-side, "FileActionDefault" method is triggered in controller part. Here received AJAX data will be stored in "[FileExplorerParams](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerParams.html)" parameter. This "FileActionDefault" method finds out the specific operations using the "ActionType" property and calls the corresponding built-in methods of "[FileExplorerOperations](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html)" class.
16
16
17
17
**BasicFileOperations class**
18
18
19
-
"BasicFileOperations" is an abstract class and it is useful for handling file operations in server end. By inheriting this class, easily you can implement a new custom class for handling file operations in server end. Refer [class reference](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.BasicFileOperations.html#) of "BasicFileOperations"
19
+
"BasicFileOperations" is an abstract class and it is useful for handling file operations in server end. By inheriting this class, easily you can implement a new custom class for handling file operations in server end. Refer [class reference](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.BasicFileOperations.html) of "BasicFileOperations"
20
20
21
21
**FileExplorerOperations class**
22
22
23
-
This class is useful for handling file operations in server end. This class inherits the "BasicFileOperations" class and its abstract methods has been implemented here for managing files in **underlying machine's physical file system**. Refer [class reference](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html#) of "FileExplorerOperations"
23
+
This class is useful for handling file operations in server end. This class inherits the "BasicFileOperations" class and its abstract methods has been implemented here for managing files in **underlying machine's physical file system**. Refer [class reference](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html) of "FileExplorerOperations"
24
24
25
25
**FileExplorerParams class**
26
26
27
-
"FileExplorerParams" class is used to receive the AJAX data in server side. In server side, we have a common method to handle all the AJAX requests, which is raised from client part of FileExplorer. This method contains "FileExplorerParams" object as a parameter and it is used to store the AJAX request data that will be useful for handling file operations. Refer [class reference](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerParams.html#) of "FileExplorerParams"
27
+
"FileExplorerParams" class is used to receive the AJAX data in server side. In server side, we have a common method to handle all the AJAX requests, which is raised from client part of FileExplorer. This method contains "FileExplorerParams" object as a parameter and it is used to store the AJAX request data that will be useful for handling file operations. Refer [class reference](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerParams.html) of "FileExplorerParams"
28
28
29
29
N> Here "ActionType" specifies following operations such as "Read", "CreateFolder", "Paste", "Remove", "Rename", "GetDetails", "Download", "Upload", "Search". Following [section](#abstract-methods-in-basicfileoperations-class) contains the details about each operation.
30
30
31
31
## Customizing AJAX handling functions
32
32
33
-
In FileExplorer, server side functionalities are necessary to handle the AJAX request of FileExplorer. Here "Syncfusion.EJ" assembly contains built-in "[BasicFileOperations](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.BasicFileOperations.html#)" abstract class and implementation of "[FileExplorerOperations](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html#)" class for providing the content to FileExplorer and handling AJAX requests. If is it necessary, you can customize the server side functionalities of FileExplorer as per your requirement.
33
+
In FileExplorer, server side functionalities are necessary to handle the AJAX request of FileExplorer. Here "Syncfusion.EJ" assembly contains built-in "[BasicFileOperations](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.BasicFileOperations.html)" abstract class and implementation of "[FileExplorerOperations](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html)" class for providing the content to FileExplorer and handling AJAX requests. If is it necessary, you can customize the server side functionalities of FileExplorer as per your requirement.
34
34
35
35
### Override the existing Syncfusion.JavaScript.FileExplorerOperations class
36
36
37
-
Using "[FileExplorerOperations](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html#)" class, you can manage the underlying machine's physical file system with the help of FileExplorer control. Here you can override the necessary methods that is available in "**FileExplorerOperations**" by sub classing the existing "**FileExplorerOperations**" class.
37
+
Using "[FileExplorerOperations](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html)" class, you can manage the underlying machine's physical file system with the help of FileExplorer control. Here you can override the necessary methods that is available in "**FileExplorerOperations**" by sub classing the existing "**FileExplorerOperations**" class.
38
38
39
39
Below code example shows how to override "**GetDetails**" method, which is available in **"FileExplorerOperations**"
40
40
@@ -81,7 +81,7 @@ Below code example shows how to override "**GetDetails**" method, which is a
81
81
82
82
### Implement a new custom class to handle AJAX request and provide content for FileExplorer
83
83
84
-
When overriding the particular methods were not enough, you can create a new custom class using "[BasicFileOperations](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.BasicFileOperations.html#)" abstract class. It helps to provide different file sources to be used the content for FileExplorer control, such as database system, physical system or online storage system such as Azure.
84
+
When overriding the particular methods were not enough, you can create a new custom class using "[BasicFileOperations](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.BasicFileOperations.html)" abstract class. It helps to provide different file sources to be used the content for FileExplorer control, such as database system, physical system or online storage system such as Azure.
85
85
86
86
#### Notes to Implementers
87
87
@@ -161,7 +161,7 @@ Response data should be in JSON format with key name as "{{'**files** '| markdow
161
161
"error":null
162
162
}
163
163
<br/>
164
-
Note: If needed, customer can also add additional data along with existing properties of "{{'[FileExplorerDirectoryContent](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerDirectoryContent.html#)'| markdownify }}" class.
164
+
Note: If needed, customer can also add additional data along with existing properties of "{{'[FileExplorerDirectoryContent](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerDirectoryContent.html)'| markdownify }}" class.
165
165
<br/>
166
166
</td>
167
167
<td>
@@ -278,7 +278,7 @@ It contains the details about selected items, which is going to be renamed
It contains the details about already existing files in destination folder, which contains the files in same name and type as same as newly copied files.
336
336
<br/>
@@ -619,7 +619,7 @@ Also we have option to configure the AJAX request in client side, please refer l
619
619
620
620
### Managing files that is available in SQL database
621
621
622
-
You can manage the files that are available in database using our FileExplorer control. Here you may use this custom "**SQLFileExplorerOperations**" class for handling file management related operations using SQL database. This class is used to simplify the process on server side. It contains some built-in methods that are used to handle file operations (like read, copy, move, delete, etc.) using SQL database. This class is created by inheriting the abstract class "[BasicFileOperations](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.BasicFileOperations.html#)". If is it necessary, you may override the methods in "**SQLFileExplorerOperations**" class.
622
+
You can manage the files that are available in database using our FileExplorer control. Here you may use this custom "**SQLFileExplorerOperations**" class for handling file management related operations using SQL database. This class is used to simplify the process on server side. It contains some built-in methods that are used to handle file operations (like read, copy, move, delete, etc.) using SQL database. This class is created by inheriting the abstract class "[BasicFileOperations](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.BasicFileOperations.html)". If is it necessary, you may override the methods in "**SQLFileExplorerOperations**" class.
623
623
624
624
* To make connection with SQL database (FileManager.mdf) services, please specify connection string in "Web.config" file as specified in the following code example.
625
625
@@ -771,7 +771,7 @@ In the view page, add "FileExplorer" helper and specify the physical path as
771
771
772
772
{% endhighlight %}
773
773
774
-
In the controller page, specify the "[GetImage](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations~GetImage.html#)" handling operation as shown below. This handling function is necessary to render the images in FileExplorer, while physical path has been mentioned.
774
+
In the controller page, specify the "[GetImage](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations~GetImage.html)" handling operation as shown below. This handling function is necessary to render the images in FileExplorer, while physical path has been mentioned.
775
775
776
776
{% highlight c# %}
777
777
@@ -811,7 +811,7 @@ In the controller page, specify the "[GetImage](http://help.syncfusion.com/cr/
811
811
812
812
## Adding Custom column in grid view of FileExplorer
813
813
814
-
You can add custom column in grid view of "FileExplorer". To achieve this requirement, in controller page you have to add the custom column with existing AJAX response by overriding the "Read" method, which is available in "[FileExplorerOperations](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html#)" class. Please refer following code example.
814
+
You can add custom column in grid view of "FileExplorer". To achieve this requirement, in controller page you have to add the custom column with existing AJAX response by overriding the "Read" method, which is available in "[FileExplorerOperations](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations.html)" class. Please refer following code example.
Copy file name to clipboardExpand all lines: aspnetmvc/FileExplorer/Thumbnail-Compression.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ In the view page, add "FileExplorer" helper and specify the thumbnail image
27
27
28
28
{% endhighlight %}
29
29
30
-
In the controller page, specify the "[GetImage](http://help.syncfusion.com/cr/cref_files/aspnetmvc/dociohelper/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations~GetImage.html#)" handling operation as shown below. This handling function is necessary to compress and load the images in "FileExplorer", while "EnableThumbnailCompress" option has been enabled.
30
+
In the controller page, specify the "[GetImage](https://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.FileExplorerOperations~GetImage.html)" handling operation as shown below. This handling function is necessary to compress and load the images in "FileExplorer", while "EnableThumbnailCompress" option has been enabled.
31
31
32
32
{% highlight c# %}
33
33
public ActionResult FileActionThumbnailCompress(FileExplorerParams args)
0 commit comments