Skip to content

Commit 96d388b

Browse files
894649: Update Getting Started UG Document for Core and MVC
1 parent 315eb18 commit 96d388b

File tree

1 file changed

+20
-20
lines changed
  • ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/fieldlist

1 file changed

+20
-20
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>

0 commit comments

Comments
 (0)