forked from syncfusion/ej2-aspnetcore-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGroupingWithCheckBox.cshtml
44 lines (42 loc) · 1.97 KB
/
GroupingWithCheckBox.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
@using Syncfusion.EJ2
@section ControlsSection{
<div class="control-section">
<div class="control-wrapper">
<h4>Grouping with CheckBox</h4>
<ejs-multiselect id="group" placeholder="Select a vegetables" enableSelectionOrder="false" dataSource="@ViewBag.groupdata" mode="CheckBox" allowFiltering="true" showSelectAll="true" filterBarPlaceholder="Search Vegetables" enableGroupCheckBox="true">
<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 select the grouped list item values through checkbox in the ASP.NET Core MultiSelect control." />
}
@section ActionDescription{
<div id="action-description">
<p>
This sample demonstrates the grouping functionalities of the MultiSelect in checkbox mode. Clicking the checkbox in group will select all the items grouped under it. Click the MultiSelect element and then type
the character in the search box. It will display the filtered list items based on the typed characters and then select
the multiple values through the checkbox.
</p>
</div>
}
@section Description{
<div id="description">
<p>
The MultiSelect has built-in support to select the multiple values through the checkbox, when the <code>mode</code> property
is set to <code>CheckBox</code>. To perform the checkbox feature in MultiSelect, the <code>CheckBoxSelection</code> module
should be injected in the application end.
</p>
</div>
}