forked from syncfusion/ej2-aspnetmvc-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefaultFunctionalities.cshtml
74 lines (61 loc) · 2.43 KB
/
DefaultFunctionalities.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@using Syncfusion.EJ2
@using Syncfusion.EJ2.Lists
@section ControlsSection{
<div class="control-section">
<div id="flat-list">
<h4>Flat List</h4>
@Html.EJS().ListView("listview").Enable(true).DataSource((IEnumerable<object>)ViewBag.dataSource).Render()
</div>
<div id="group-list">
<h4>Group List</h4>
@Html.EJS().ListView("listviewgrp").Enable(true).DataSource((IEnumerable<object>)ViewBag.groupData).Fields(new ListViewFieldSettings { GroupBy = "category" }).Render()
</div>
</div>
}
@section Meta{
<meta name="description" content="This example demonstrates the Default Functionalities in ASP.NET MVC ListView control. Explore here for more details."/>
}
@section ActionDescription{
<div id="action-description">
<p>This sample demonstrates the default functionalities of the ListView. Click any item from the list to select and highlight it.</p>
</div>
}
@section Description{
<div id="description">
<p>The ListView component represents data in interactive hierarchical structure interface across different layouts or views, that also has the features such as data binding, template rendering, and grouping.</p>
<p>The group list allows you to group the relevant items under a logical category by mapping the <code><a target='_blank' class='code' href='https://help.syncfusion.com/cr/cref_files/aspnetmvc-js2/Syncfusion.EJ2~Syncfusion.EJ2.Lists.ListViewFieldSettings~GroupBy.html'>GroupBy</a></code> field.</p>
<p>In this sample, <b>Cars</b> are grouped based on their <b>Category</b>.</p>
</div>
}
<style>
#listview, #listviewgrp {
border: 1px solid #dddddd;
border-radius: 3px;
}
.control-section {
overflow: auto;
}
#flat-list,
#group-list {
width: 49%;
margin: auto;
margin-bottom: 15px;
}
#flat-list h4, #group-list h4 {
padding-left: 16px;
}
#flat-list {
float: left;
padding-left: 16px;
}
#group-list {
float: right;
padding-right: 16px;
}
</style>
@section Title{
<title>ASP.NET MVC ListView Default Functionalities Example - Syncfusion Demos </title>
}
@section Header{
<h1 class='sb-sample-text'>Example of Default Functionalities in ASP.NET MVC ListView Control</h1>
}