forked from syncfusion/ej2-aspnetcore-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGroupingAndIcon.cshtml
49 lines (45 loc) · 1.85 KB
/
GroupingAndIcon.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
48
49
@using Syncfusion.EJ2
@section ControlsSection{
<div class="control-section">
<div class="control-wrapper">
<h4>Grouping</h4>
<ejs-multiselect id="group" placeholder="Select a vegetables" dataSource="@ViewBag.groupdata">
<e-multiselect-fields groupBy="Category" text="Vegetable" value="Id"></e-multiselect-fields>
</ejs-multiselect>
</div>
</div>
<style>
.control-fluid, .container-fluid {
padding-right: 15px;
padding-left: 15px;
}
.control-content .control-section{
border-width: 0px !important;
}
</style>
<link href="../css/multiselect/grouping.css" rel="stylesheet" />
}
@section Meta{
<meta name="description" content="This example demonstrates how to group based on the different categories with individual header and icon support using the ASP.NET Core multiselect control."/>
}
@section ActionDescription{
<div id="action-description">
<p>
This sample demonstrates the grouping supports of the MultiSelect. Type a character in the MultiSelect element
or click on this element to choose one or more items from the categorized list.
</p>
</div>
}
@section Description{
<div id="description">
<p>
The MultiSelect allows to group the relevant items under a corresponding category by mapping the
<code>groupBy</code> field, and allows to load the list items.
</p>
<p>The grouping sample illustrates how the vegetables are grouped based on its category.</p>
<p>
More information on the grouping feature configuration can be found in the
<a href="https://ej2.syncfusion.com/aspnetcore/documentation/multi-select/grouping/" target="_blank"> documentation section</a>.
</p>
</div>
}