Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fad6f5e

Browse files
author
ROOT\ilakkiya.baskar
committed
Merge branch 'hotfix/hotfix-v15.4.0.17' of https://gitlab.syncfusion.com/content/asp.netmvc-docs into JS53830_UG_documentation_for_combobox
2 parents 95c20ca + 3a7a01f commit fad6f5e

File tree

3 files changed

+83
-2
lines changed

3 files changed

+83
-2
lines changed

‎aspnetmvc/FileExplorer/How-To.md‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ Here you need to implement new class by sub classing the existing "**BasicFile
617617

618618
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)
619619

620-
### Managing files that is available in SQL database
620+
## Managing files that is available in SQL database
621621

622622
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.
623623

@@ -647,6 +647,34 @@ After creating the object for "SQLFileExplorerOperations" class in control
647647

648648
We have prepared the following sample based on this, [FileExplorer Sample](http://www.syncfusion.com/downloads/support/directtrac/153129/ze/ServerOperations-1702691750#)
649649

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
671+
672+
[sample](http://www.syncfusion.com/downloads/support/directtrac/general/ze/ServerOperations-291041509.zip)
673+
674+
N> Here we have fetched the file permissions from the SQL table for the files located in SQL database.
675+
676+
To know more details about file access permission, please refer this [link](https://help.syncfusion.com/aspnetmvc/fileexplorer/access-control)
677+
650678
## Cross-origin resource sharing support for FileExplorer
651679

652680
**Cross-origin request**

‎aspnetmvc/TreeView/Populate-Data.md‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,59 @@ Above data can be directly assigned to [DataSource](http://help.syncfusion.com/c
364364
{% endhighlight %}
365365

366366

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.
405+
406+
407+
408+
{% highlight razor %}
409+
410+
@(Html.EJ().TreeView("tree")
411+
.TreeViewFields(field =>
412+
field.Datasource((IEnumerable<LoadData>)ViewBag.datasource)
413+
.Id("Id")
414+
.ParentId("Parent")
415+
.Text("Text.fName")
416+
)
417+
)
418+
419+
{% endhighlight %}
367420

368421
## Remote Data
369422

‎aspnetmvc/Unobtrusive.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation: ug
99

1010
# Unobtrusive
1111

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.
1313

1414
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.
1515

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /