Skip to content

Commit 621ede5

Browse files
894649: Update Getting Started UG Document for Core and MVC
1 parent 5dcb43d commit 621ede5

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/fieldlist/tagHelper

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@{
2-
List<PivotData> pivotData = new List<PivotData>();
2+
List<PivotData> pivotData = new List<PivotData>();
33
pivotData.Add(new PivotData { Sold = 31, Amount = 52824, Country = "France", Products = "Mountain Bikes", Year = "FY 2015", Quarter = "Q1" });
44
pivotData.Add(new PivotData { Sold = 51, Amount = 86904, Country = "France", Products = "Mountain Bikes", Year = "FY 2015", Quarter = "Q2" });
55
pivotData.Add(new PivotData { Sold = 90, Amount = 153360, Country = "France", Products = "Mountain Bikes", Year = "FY 2015", Quarter = "Q3" });
@@ -76,22 +76,22 @@
7676
pivotData.Add(new PivotData { Sold = 109, Amount = 29576, Country = "United States", Products = "Road Bikes", Year = "FY 2017", Quarter = "Q3" });
7777
}
7878

79-
<ejs-pivotview id="PivotView" height="300" showFieldList="true">
80-
<e-datasourcesettings dataSource="@pivotData" expandAll="false" enableSorting="true" allowLabelFilter="true" allowValueFilter="true">
81-
<e-formatsettings>
82-
<e-field name="Amount" format="C0" maximumSignificantDigits="10" minimumSignificantDigits="1" useGrouping="true"></e-field>
83-
</e-formatsettings>
84-
<e-rows>
85-
<e-field name="Country"></e-field>
86-
<e-field name="Products"></e-field>
87-
</e-rows>
88-
<e-columns>
89-
<e-field name="Year" caption="Year"></e-field>
90-
<e-field name="Quarter"></e-field>
91-
</e-columns>
92-
<e-values>
93-
<e-field name="Sold" caption="Units Sold"></e-field>
94-
<e-field name="Amount" caption="Sold Amount"></e-field>
95-
</e-values>
96-
</e-datasourcesettings>
97-
</ejs-pivotview>
79+
< ejs - pivotview id = "PivotView" height = "300" showFieldList = "true" >
80+
< e - datasourcesettings dataSource = "@pivotData" expandAll = "false" enableSorting = "true" allowLabelFilter = "true" allowValueFilter = "true" >
81+
< e - formatsettings >
82+
< e - field name = "Amount" format = "C0" maximumSignificantDigits = "10" minimumSignificantDigits = "1" useGrouping = "true" ></ e - field >
83+
</ e - formatsettings >
84+
< e - rows >
85+
< e - field name = "Country" ></ e - field >
86+
< e - field name = "Products" ></ e - field >
87+
</ e - rows >
88+
< e - columns >
89+
< e - field name = "Year" caption = "Year" ></ e - field >
90+
< e - field name = "Quarter" ></ e - field >
91+
</ e - columns >
92+
< e - values >
93+
< e - field name = "Sold" caption = "Units Sold" ></ e - field >
94+
< e - field name = "Amount" caption = "Sold Amount" ></ e - field >
95+
</ e - values >
96+
</ e - datasourcesettings >
97+
</ ejs - pivotview >

ej2-asp-core-mvc/pivot-table/EJ2_ASP.MVC/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Also, register the script manager `EJS().ScriptManager()` at the end of `<body>`
100100
{
101101
public ActionResult Index()
102102
{
103-
return View(PivotData.GetAllDetails());
103+
return View(PivotData.GetPivotData());
104104

105105
}
106106
}
@@ -127,7 +127,7 @@ Also, register the script manager `EJS().ScriptManager()` at the end of `<body>`
127127
Quarter = quarter;
128128
}
129129

130-
public static List<PivotData> GetAllDetails()
130+
public static List<PivotData> GetPivotData()
131131
{
132132
if (pivotDataList.Count == 0)
133133
{

0 commit comments

Comments
 (0)