File tree Expand file tree Collapse file tree 35 files changed +197
-110
lines changed
ej2-asp-core-mvc/code-snippet/pivot-table
aggregation/aggregation-icon
field-list/static-fieldlist-virtualization
label-filtering/filtering-ui
getting-start-mvc/field-mapping Expand file tree Collapse file tree 35 files changed +197
-110
lines changed Original file line number Diff line number Diff line change 1- <ejs-pivotview id="PivotView" height="300">
1+ <ejs-pivotview id="PivotView" height="300" showGroupingBar="true" >
22 <e-datasourcesettings dataSource="@ViewBag.DataSource" expandAll="false" showAggregationOnValueField="false">
33 <e-rows>
44 <e-field name="Country"></e-field>
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ public ActionResult Index()
33 var data = GetPivotData ( ) ;
44 ViewBag . DataSource = data ;
55 ViewBag . drilledMembers = new string [ ] { "Accessories" , "Bikes" } ;
6+ ViewBag . drilledMembersProducts = new string [ ] { "Helmets" } ;
67 ViewBag . filterSettings = new string [ ] { "Cleaners" , "Fenders" } ;
78 return View ( ) ;
89}
Original file line number Diff line number Diff line change 11<ejs-pivotview id="PivotView" load="onLoad" showFieldList="true" width="100%" height="450">
2- <e-datasourcesettings dataSource="@data " expandAll="false" enableSorting="true">
2+ <e-datasourcesettings dataSource="@ViewBag.DataSource " expandAll="false" enableSorting="true">
33 <e-formatsettings>
44 <e-field name="Amount" format="C0" maximumSignificantDigits="10" minimumSignificantDigits="1"
55 useGrouping="true"></e-field>
66 </e-formatsettings>
77 <e-drilledmembers>
8- <e-field name="Product_Categories" items="@drilledMembers"></e-field>
9- <e-field name="Products" delimiter="##" items="@drilledMembersProducts"></e-field>
8+ <e-field name="Product_Categories" items="@ViewBag. drilledMembers"></e-field>
9+ <e-field name="Products" delimiter="##" items="@ViewBag. drilledMembersProducts"></e-field>
1010 </e-drilledmembers>
1111 <e-filtersettings>
12- <e-field name="Products" type="Exclude" items="@filtersettings "></e-field>
12+ <e-field name="Products" type="@FilterType. Exclude" items="@ViewBag.filterSettings "></e-field>
1313 </e-filtersettings>
1414 <e-rows>
1515 <e-field name="Product_Categories" caption="Product Categories"></e-field>
Original file line number Diff line number Diff line change 2222 <e-field name="Product_Categories" caption="Product Categories"></e-field>
2323 </e-filters>
2424 <e-conditionalformatsettings>
25- <e-format measure="In_Stock" conditions="LessThan" value1="500">
25+ <e-format measure="In_Stock" conditions="@Condition. LessThan" value1="500">
2626 <e-fieldlist-style backgroundColor="#80cbc4" color="black" fontFamily="Tahoma" fontSize="12px" />
2727 </e-format>
2828 </e-conditionalformatsettings>
Original file line number Diff line number Diff line change 2222 <e-field name="Product_Categories" caption="Product Categories"></e-field>
2323 </e-filters>
2424 <e-conditionalformatsettings>
25- <e-format conditions="GreaterThan" value1="500">
25+ <e-format conditions="@Condition. GreaterThan" value1="500">
2626 <e-fieldlist-style backgroundColor="#80cbc4" color="black" fontFamily="Tahoma" fontSize="12px" />
2727 </e-format>
2828 </e-conditionalformatsettings>
Original file line number Diff line number Diff line change 2323 <e-field name="Product_Categories" caption="Product Categories"></e-field>
2424 </e-filters>
2525 <e-conditionalformatsettings>
26- <e-format measure="In_Stock" conditions="LessThan" value1="1000">
26+ <e-format measure="In_Stock" conditions="@Condition. LessThan" value1="1000">
2727 <e-fieldlist-style backgroundColor="#80cbc4" color="black" fontFamily="Tahoma" fontSize="12px" />
2828 </e-format>
29- <e-format measure="Sold" conditions="Between" value1="500" value2="40000">
29+ <e-format measure="Sold" conditions="@Condition. Between" value1="500" value2="40000">
3030 <e-fieldlist-style backgroundColor="#f48fb1" color="black" fontFamily="Tahoma" fontSize="12px" />
3131 </e-format>
3232 </e-conditionalformatsettings>
Original file line number Diff line number Diff line change 1919 <e-field name="Product_Categories" caption="Product Categories"></e-field>
2020 </e-filters>
2121 <e-conditionalformatsettings>
22- <e-format label="Germany" conditions="Between" value1="500" value2="50000">
22+ <e-format label="Germany" conditions="@Condition. Between" value1="500" value2="50000">
2323 <e-fieldlist-style backgroundColor="#f48fb1" color="black" fontFamily="Tahoma" fontSize="12px" />
2424 </e-format>
2525 </e-conditionalformatsettings>
Original file line number Diff line number Diff line change 2222 <e-field name="Product_Categories" caption="Product Categories"></e-field>
2323 </e-filters>
2424 <e-conditionalformatsettings>
25- <e-format measure="In_Stock" conditions="LessThan" value1="5000">
25+ <e-format measure="In_Stock" conditions="@Condition. LessThan" value1="5000">
2626 <e-fieldlist-style backgroundColor="#80cbc4" color="black" fontFamily="Tahoma" fontSize="12px" />
2727 </e-format>
28- <e-format measure="Sold" conditions="Between" value1="3400" value2="40000">
28+ <e-format measure="Sold" conditions="@Condition. Between" value1="3400" value2="40000">
2929 <e-fieldlist-style backgroundColor="#f48fb1" color="black" fontFamily="Tahoma" fontSize="12px" />
3030 </e-format>
3131 </e-conditionalformatsettings>
Original file line number Diff line number Diff line change 2323 <e-field name="Product_Categories" caption="Product Categories"></e-field>
2424 </e-filters>
2525 <e-conditionalformatsettings>
26- <e-format measure="In_Stock" conditions="GreaterThan" value1="1000">
26+ <e-format measure="In_Stock" conditions="@Condition. GreaterThan" value1="1000">
2727 <e-fieldlist-style backgroundColor="#80cbc4" color="black" fontFamily="Tahoma" fontSize="12px" />
2828 </e-format>
29- <e-format measure="Sold" conditions="Between" value1="500" value2="40000">
29+ <e-format measure="Sold" conditions="@Condition. Between" value1="500" value2="40000">
3030 <e-fieldlist-style backgroundColor="#f48fb1" color="black" fontFamily="Tahoma" fontSize="12px" />
3131 </e-format>
3232 </e-conditionalformatsettings>
Original file line number Diff line number Diff line change 55 <e-field name="Products" showNoDataItems="true"></e-field>
66 </e-rows>
77 <e-columns>
8- <e-field name="Products " showNoDataItems="true"></e-field>
8+ <e-field name="Year " showNoDataItems="true"></e-field>
99 <e-field name="Quarter" showNoDataItems="true"></e-field>
1010 </e-columns>
1111 <e-values>
You can’t perform that action at this time.
0 commit comments