forked from syncfusion/ej2-aspnetcore-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultiSelection.cshtml
47 lines (45 loc) · 1.75 KB
/
MultiSelection.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
45
46
47
@using Syncfusion.EJ2
@section ControlsSection{
<div class="control-section">
<div class="control_wrapper">
<ejs-treeview id="treedata" allowMultiSelection="true">
<e-treeview-fields dataSource="ViewBag.dataSource" id="id" parentId="pid" text="name" hasChildren="hasChild" expanded="expanded" selected="is_selected"></e-treeview-fields>
</ejs-treeview>
</div>
</div>
}
@section Meta{
<meta name="description" content="ASP.NET Core TreeView component allows to select multiple nodes by pressing CTRL key, also can select the range of nodes by pressing SHIFT key." />
}
@section ActionDescription{
<div id="action-description">
<p>This sample demonstrates the multiple node selection functionalities of the TreeView. To select multiple nodes, press the CTRL key and select the desired nodes; or select any node and by pressing SHIFT key select another node, this selects all the nodes in-between the selected nodes.</p>
</div>
}
@section Description{
<div id="description">
<p>
The TreeView component allows to select multiple nodes by enabling the allowMultiSelection property.
</p>
<p>
In this demo, the TreeView is enabled with multiple selection
</p>
<p>
More information about Treeview can be found in this
<a target="_blank"
href="https://ej2.syncfusion.com/aspnetcore/documentation/treeview/multiple-selection/">
documentation section
</a>.
</p>
</div>
}
@*custom code start*@
<style>
.control_wrapper {
max-width: 500px;
margin: auto;
border: 1px solid #dddddd;
border-radius: 3px;
}
</style>
@*custom code end*@