From d222e58a99ac2926ff257e963164046016cc9c9b Mon Sep 17 00:00:00 2001 From: Karthickraja M Date: Wed, 25 Jun 2025 16:42:47 +0530 Subject: [PATCH 1/7] 928535: To update code snippets for Core Pivot Table UG documentation --- .../pivot-table/aggregation/aggregation-icon/tagHelper | 2 +- .../pivot-table/classic-layout/ClassicLayout.cs | 1 + .../code-snippet/pivot-table/classic-layout/tagHelper | 8 ++++---- .../pivot-table/data-binding/no-data/tagHelper | 2 +- .../pivot-table/filtering/member-filtering/tagHelper | 2 +- .../grid-customization/allowAutoResizing/tagHelper | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/aggregation/aggregation-icon/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/aggregation/aggregation-icon/tagHelper index ee4ce46362..6565d54b4e 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/aggregation/aggregation-icon/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/aggregation/aggregation-icon/tagHelper @@ -1,4 +1,4 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/ClassicLayout.cs b/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/ClassicLayout.cs index 34762e1457..ae618bc44f 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/ClassicLayout.cs +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/ClassicLayout.cs @@ -3,6 +3,7 @@ public ActionResult Index() var data = GetPivotData(); ViewBag.DataSource = data; ViewBag.drilledMembers = new string[] { "Accessories", "Bikes" }; + ViewBag.drilledMembersProducts = new string[] { "Helmets" }; ViewBag.filterSettings = new string[] { "Cleaners", "Fenders" }; return View(); } \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/tagHelper index f6dacb8097..80b130b186 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/tagHelper @@ -1,15 +1,15 @@ - + - - + + - + diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/no-data/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/no-data/tagHelper index 65b37860ef..858810ecab 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/no-data/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/no-data/tagHelper @@ -5,7 +5,7 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/member-filtering/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/member-filtering/tagHelper index ed9e7b8cdc..e936ffbd27 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/member-filtering/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/member-filtering/tagHelper @@ -1,7 +1,7 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/allowAutoResizing/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/allowAutoResizing/tagHelper index 23cbe9d5e1..8beb68b087 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/allowAutoResizing/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/allowAutoResizing/tagHelper @@ -2,7 +2,7 @@ - + From 510df286ff21eb4d44ecefa679a52281cf362e10 Mon Sep 17 00:00:00 2001 From: Karthickraja M Date: Wed, 25 Jun 2025 18:57:36 +0530 Subject: [PATCH 2/7] 928535: To update code snippets for Core Pivot Table UG documentation --- .../pivot-table/data-binding/odata/tagHelper | 2 +- .../editing/Inline-editing/tagHelper | 7 ++-- .../static-fieldlist-virtualization/tagHelper | 39 +------------------ .../virtualization.cs | 38 +++++++++--------- .../getting-start-mvc/field-mapping/tagHelper | 10 ++--- .../sorting/custom-sorting/tagHelper | 4 +- .../pivot-table/sorting/tagHelper | 2 +- 7 files changed, 35 insertions(+), 67 deletions(-) diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/odata/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/odata/tagHelper index fce9876850..3519445ab0 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/odata/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/odata/tagHelper @@ -1,6 +1,6 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/editing/Inline-editing/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/editing/Inline-editing/tagHelper index d7e5a06f1e..d3bf5289a3 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/editing/Inline-editing/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/editing/Inline-editing/tagHelper @@ -6,13 +6,14 @@ + - - + + - + diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/tagHelper index d63a3ec7da..b6013121c5 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/tagHelper @@ -1,7 +1,7 @@
- + @@ -36,41 +36,6 @@ \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/virtualization.cs b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/virtualization.cs index e9d38c1a74..1d4021d852 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/virtualization.cs +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/virtualization.cs @@ -1,5 +1,7 @@ public ActionResult Index() { + var data = GetPivotData(1000); + ViewBag.DataSource = data; return View(); } @@ -9,27 +11,27 @@ public class PivotData public string Year { get; set; } public double Sold { get; set; } public double Price { get; set; } +} - public static List GetPivotData(int count) - { - var result = new List(); - int dt = 0; +public static List GetPivotData(int count) +{ + var result = new List(); + int dt = 0; - for (int i = 1; i <= count; i++) + for (int i = 1; i <= count; i++) + { + dt++; + string round = i.ToString().PadLeft(5, '0'); + result.Add(new PivotData { - dt++; - string round = i.ToString().PadLeft(5, '0'); - result.Add(new PivotData - { - ProductID = "PRO-" + round, - Year = "FY " + (dt + 2013), - Price = new Random(Guid.NewGuid().GetHashCode()).Next(5000, 10001), - Sold = new Random(Guid.NewGuid().GetHashCode()).Next(10, 91), - }); + ProductID = "PRO-" + round, + Year = "FY " + (dt + 2013), + Price = new Random(Guid.NewGuid().GetHashCode()).Next(5000, 10001), + Sold = new Random(Guid.NewGuid().GetHashCode()).Next(10, 91), + }); - if (dt / 4 == 1) - dt = 0; - } - return result; + if (dt / 4 == 1) + dt = 0; } + return result; } \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/field-mapping/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/field-mapping/tagHelper index b537b42bfa..010ebc3304 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/field-mapping/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/field-mapping/tagHelper @@ -3,6 +3,11 @@ + + + + + @@ -12,10 +17,5 @@ - - - - -
\ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/sorting/custom-sorting/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/sorting/custom-sorting/tagHelper index 3ae65829f4..6e18d37cf1 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/sorting/custom-sorting/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/sorting/custom-sorting/tagHelper @@ -3,8 +3,8 @@ - - + + diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/sorting/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/sorting/tagHelper index 6e88a19e8b..a970d0715f 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/sorting/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/sorting/tagHelper @@ -3,7 +3,7 @@ - + From 59eaeb83d0cd5429c2997f953063e447ae8adb47 Mon Sep 17 00:00:00 2001 From: Karthickraja M Date: Fri, 27 Jun 2025 10:37:19 +0530 Subject: [PATCH 3/7] 928535: To update code snippets for Core Pivot Table UG documentation - updating samples --- .../grid-customization/excel-headercell/tagHelper | 8 +++++++- .../grid-customization/excel-querycell/tagHelper | 9 ++++++++- .../grid-customization/pdf-headercell/tagHelper | 9 ++++++++- .../grid-customization/pdf-querycell/tagHelper | 2 +- .../pivot-table/hyper-link/all-cells/tagHelper | 15 +++++++++++++-- .../hyper-link/column-header/tagHelper | 15 +++++++++++++-- .../pivot-table/hyper-link/conditions/tagHelper | 15 +++++++++++++-- .../pivot-table/hyper-link/event/tagHelper | 15 +++++++++++++-- .../pivot-table/hyper-link/headers/tagHelper | 15 +++++++++++++-- .../hyper-link/label-conditions/tagHelper | 15 +++++++++++++-- .../pivot-table/hyper-link/row-header/tagHelper | 15 +++++++++++++-- .../hyper-link/summary-cells/tagHelper | 14 ++++++++++++-- .../pivot-table/hyper-link/value-cells/tagHelper | 15 +++++++++++++-- 13 files changed, 140 insertions(+), 22 deletions(-) diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-headercell/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-headercell/tagHelper index 504d2288c0..e60883f753 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-headercell/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-headercell/tagHelper @@ -1,4 +1,5 @@ - + + @@ -19,6 +20,11 @@