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
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -617,7 +617,7 @@ Here you need to implement new class by sub classing the existing "**BasicFile
617
617
618
618
Also we have option to configure the AJAX request in client side, please refer link: [http://help.syncfusion.com/js/fileexplorer/behavior-settings#customize-the-ajax-request-settings](http://help.syncfusion.com/js/fileexplorer/behavior-settings#customize-the-ajax-request-settings)
619
619
620
-
###Managing files that is available in SQL database
620
+
## Managing files that is available in SQL database
621
621
622
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
@@ -647,6 +647,34 @@ After creating the object for "SQLFileExplorerOperations" class in control
647
647
648
648
We have prepared the following sample based on this, [FileExplorer Sample](http://www.syncfusion.com/downloads/support/directtrac/153129/ze/ServerOperations-1702691750#)
649
649
650
+
651
+
### File Access permission for the files that is available in SQL database
652
+
653
+
The FileExplorer provides method to assign permissions or access rights to specific users and group of users. It allows you to define access permissions for folders and files using a set of access rules to user(s).
654
+
655
+
656
+
* As per the above details, In controller part, you need to create an object of "SQLFileExplorerOperations" class and additionally you need to pass the `access rules` as a constructor parameter.
657
+
658
+
{% highlight c# %}
659
+
660
+
//Here "FileExplorerConnection" is a connection string name, which is defined in Web.config file.
661
+
662
+
//"Product" is a table name, which is defined in SQL database
663
+
664
+
// SQLGetRules() which a function which returns the access rules
665
+
666
+
SQLFileAccessOperations sqlObj = new SQLFileAccessOperations("FileExplorerConnection", "Product", SQLGetRules());
667
+
668
+
{% endhighlight %}
669
+
670
+
For this, we have prepared the sample and you can get it from the below link
Copy file name to clipboardExpand all lines: aspnetmvc/TreeView/Populate-Data.md
+53Lines changed: 53 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -364,6 +364,59 @@ Above data can be directly assigned to [DataSource](http://help.syncfusion.com/c
364
364
{% endhighlight %}
365
365
366
366
367
+
### Nested Object Support
368
+
369
+
The nested object support is provided for the TreeView component. Please find the following data list which contains the details about tree nodes.
370
+
371
+
372
+
{% highlight c# %}
373
+
374
+
public partial class TreeViewController : Controller
375
+
{
376
+
List<LoadData> load = new List<LoadData>();
377
+
public ActionResult TreeViewFeatures()
378
+
{
379
+
load.Add(new LoadData { Id = 1, Parent = 0, Text = new InnerData { fName = "Item 1" } });
380
+
load.Add(new LoadData { Id = 2, Parent = 0, Text = new InnerData { fName = "Item 2" } });
381
+
load.Add(new LoadData { Id = 3, Parent = 0, Text = new InnerData { fName = "Item 3" } });
382
+
load.Add(new LoadData { Id = 4, Parent = 1, Text = new InnerData { fName = "Item 1.1" } });
383
+
load.Add(new LoadData { Id = 5, Parent = 1, Text = new InnerData { fName = "Item 1.2" } });
384
+
load.Add(new LoadData { Id = 6, Parent = 3, Text = new InnerData { fName = "Item 3.1" } });
385
+
ViewBag.datasource = load;
386
+
return View();
387
+
}
388
+
}
389
+
public class LoadData
390
+
{
391
+
public int Id { get; set; }
392
+
public int Parent { get; set; }
393
+
public InnerData Text { get; set; }
394
+
}
395
+
public class InnerData
396
+
{
397
+
public string fName { get; set; }
398
+
}
399
+
400
+
{% endhighlight %}
401
+
402
+
403
+
404
+
Above data can be directly assigned to [DataSource](http://help.syncfusion.com/cr/cref_files/aspnetmvc/ejmvc/Syncfusion.EJ~Syncfusion.JavaScript.TreeViewFieldsBuilder~Datasource.html) property and mapping data fields with respect to the mapper field in order to form TreeView.
Copy file name to clipboardExpand all lines: aspnetmvc/Unobtrusive.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
@@ -9,7 +9,7 @@ documentation: ug
9
9
10
10
# Unobtrusive
11
11
12
-
Many uncertainties and difficulties are involved in a usual **JavaScript programming** environment like - some of the browsers may ignore the scripts completely or partially due to its complexity, the users might sometimes turn off the scripts in their browsers for security reasons and some may not understand it and so on. To overcome all such inconveniences, [Unobtrusive JavaScript](http://www.w3.org/wiki/The_principles_of_unobtrusive_JavaScript) support has been introduced in order to make it easier for the users to create all our Syncfusion components with basic level HTML tag-like structure.
12
+
Many uncertainties and difficulties are involved in a usual **JavaScript programming** environment like - some of the browsers may ignore the javascript codes under the scripts section completely or partially due to its complexity and so on. To overcome all such inconveniences, [Unobtrusive JavaScript](http://www.w3.org/wiki/The_principles_of_unobtrusive_JavaScript) support has been introduced in order to make it easier for the users to create all our Syncfusion components with basic level HTML tag-like structure.
13
13
14
14
One of the main goal of the unobtrusive support is to achieve the clear separation of both the HTML content and behavior, so as to enhance the page loading time and to make the code updating easier. **Essential JavaScript** have separate integration library to achieve the **Unobtrusive JS** support. To make use of Unobtrusive support with our Essential JavaScript components, it is necessary to refer the **ej.unobtrusive.min.js** file in your application.
0 commit comments