From 276f3e8956de4f2c69b232829f5117b6d2201be1 Mon Sep 17 00:00:00 2001 From: skrustev Date: Tue, 10 Sep 2024 17:45:16 +0300 Subject: [PATCH] Update templates to use recommended way of getting grid columns for Blazor. --- code-gen-library/WebGridHasSummariesChange/Blazor.cs | 4 ++-- code-gen-library/WebGridHideFirstGroupToggle/Blazor.cs | 2 +- code-gen-library/WebGridPinFirstGroupToggle/Blazor.cs | 2 +- .../WebHierarchicalGridHasSummariesChange/Blazor.cs | 6 +++--- .../WebHierarchicalGridHideFirstGroupToggle/Blazor.cs | 2 +- .../WebHierarchicalGridPinFirstGroupToggle/Blazor.cs | 2 +- code-gen-library/WebTreeGridHasSummariesChange/Blazor.cs | 6 +++--- code-gen-library/WebTreeGridHideFirstGroupToggle/Blazor.cs | 2 +- code-gen-library/WebTreeGridPinFirstGroupToggle/Blazor.cs | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/code-gen-library/WebGridHasSummariesChange/Blazor.cs b/code-gen-library/WebGridHasSummariesChange/Blazor.cs index 13c32dde..ca4d36db 100644 --- a/code-gen-library/WebGridHasSummariesChange/Blazor.cs +++ b/code-gen-library/WebGridHasSummariesChange/Blazor.cs @@ -10,8 +10,8 @@ public void WebGridHasSummariesChange(IgbPropertyEditorPropertyDescriptionChange { bool newValue = bool.Parse(args.NewValue.ToString()); - var column1 = CodeGenHelper.GetDescription("content").ActualColumnList[3]; - var column2 = CodeGenHelper.GetDescription("content").ActualColumnList[5]; + var column1 = CodeGenHelper.GetDescription("content").GetColumns().ElementAt(3); + var column2 = CodeGenHelper.GetDescription("content").GetColumns().ElementAt(5); column1.HasSummary = newValue; column2.HasSummary = newValue; diff --git a/code-gen-library/WebGridHideFirstGroupToggle/Blazor.cs b/code-gen-library/WebGridHideFirstGroupToggle/Blazor.cs index f06bd097..b55e0278 100644 --- a/code-gen-library/WebGridHideFirstGroupToggle/Blazor.cs +++ b/code-gen-library/WebGridHideFirstGroupToggle/Blazor.cs @@ -8,7 +8,7 @@ public class WebGridHideFirstGroupToggle //begin eventHandler public void WebGridHideFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args) { - var columnGroup = CodeGenHelper.GetDescription("content").ActualColumnList[1]; + var columnGroup = CodeGenHelper.GetDescription("content").GetColumns().ElementAt(1); columnGroup.Hidden = !columnGroup.Hidden; } //end eventHandler diff --git a/code-gen-library/WebGridPinFirstGroupToggle/Blazor.cs b/code-gen-library/WebGridPinFirstGroupToggle/Blazor.cs index ae7d5bb8..ef3b72e8 100644 --- a/code-gen-library/WebGridPinFirstGroupToggle/Blazor.cs +++ b/code-gen-library/WebGridPinFirstGroupToggle/Blazor.cs @@ -8,7 +8,7 @@ public class WebGridPinFirstGroupToggle //begin eventHandler public void WebGridPinFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args) { - var columnGroup = CodeGenHelper.GetDescription("content").ActualColumnList[1]; + var columnGroup = CodeGenHelper.GetDescription("content").GetColumns().ElementAt(1); columnGroup.Pinned = !columnGroup.Pinned; } //end eventHandler diff --git a/code-gen-library/WebHierarchicalGridHasSummariesChange/Blazor.cs b/code-gen-library/WebHierarchicalGridHasSummariesChange/Blazor.cs index 984a9dfe..b97127da 100644 --- a/code-gen-library/WebHierarchicalGridHasSummariesChange/Blazor.cs +++ b/code-gen-library/WebHierarchicalGridHasSummariesChange/Blazor.cs @@ -11,9 +11,9 @@ public void WebHierarchicalGridHasSummariesChange(IgbPropertyEditorPropertyDescr bool newValue = bool.Parse(args.NewValue.ToString()); var hierarchicalGrid = CodeGenHelper.GetDescription("content"); - var column1 = hierarchicalGrid.ActualColumnList[1]; - var column2 = hierarchicalGrid.ActualColumnList[3]; - var column3 = hierarchicalGrid.ActualColumnList[4]; + var column1 = hierarchicalGrid.GetColumns().ElementAt(1); + var column2 = hierarchicalGrid.GetColumns().ElementAt(3); + var column3 = hierarchicalGrid.GetColumns().ElementAt(4); column1.HasSummary = newValue; column2.HasSummary = newValue; diff --git a/code-gen-library/WebHierarchicalGridHideFirstGroupToggle/Blazor.cs b/code-gen-library/WebHierarchicalGridHideFirstGroupToggle/Blazor.cs index d89cf7c3..3eec5c30 100644 --- a/code-gen-library/WebHierarchicalGridHideFirstGroupToggle/Blazor.cs +++ b/code-gen-library/WebHierarchicalGridHideFirstGroupToggle/Blazor.cs @@ -8,7 +8,7 @@ public class WebHierarchicalGridHideFirstGroupToggle //begin eventHandler public void WebHierarchicalGridHideFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args) { - var columnGroup = CodeGenHelper.GetDescription("content").ActualColumnList[1]; + var columnGroup = CodeGenHelper.GetDescription("content").GetColumns().ElementAt(1); columnGroup.Hidden = !columnGroup.Hidden; } //end eventHandler diff --git a/code-gen-library/WebHierarchicalGridPinFirstGroupToggle/Blazor.cs b/code-gen-library/WebHierarchicalGridPinFirstGroupToggle/Blazor.cs index ddcaca9f..c8a9c971 100644 --- a/code-gen-library/WebHierarchicalGridPinFirstGroupToggle/Blazor.cs +++ b/code-gen-library/WebHierarchicalGridPinFirstGroupToggle/Blazor.cs @@ -8,7 +8,7 @@ public class WebHierarchicalGridPinFirstGroupToggle //begin eventHandler public void WebHierarchicalGridPinFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args) { - var columnGroup = CodeGenHelper.GetDescription("content").ActualColumnList[1]; + var columnGroup = CodeGenHelper.GetDescription("content").GetColumns().ElementAt(1); columnGroup.Pinned = !columnGroup.Pinned; } //end eventHandler diff --git a/code-gen-library/WebTreeGridHasSummariesChange/Blazor.cs b/code-gen-library/WebTreeGridHasSummariesChange/Blazor.cs index c6a69955..36bfb515 100644 --- a/code-gen-library/WebTreeGridHasSummariesChange/Blazor.cs +++ b/code-gen-library/WebTreeGridHasSummariesChange/Blazor.cs @@ -11,9 +11,9 @@ public void WebTreeGridHasSummariesChange(IgbPropertyEditorPropertyDescriptionCh bool newValue = bool.Parse(args.NewValue.ToString()); var treeGrid = CodeGenHelper.GetDescription("content"); - var column1 = treeGrid.ActualColumnList[1]; - var column2 = treeGrid.ActualColumnList[2]; - var column3 = treeGrid.ActualColumnList[4]; + var column1 = treeGrid.GetColumns().ElementAt(1); + var column2 = treeGrid.GetColumns().ElementAt(2); + var column3 = treeGrid.GetColumns().ElementAt(4); column1.HasSummary = newValue; column2.HasSummary = newValue; diff --git a/code-gen-library/WebTreeGridHideFirstGroupToggle/Blazor.cs b/code-gen-library/WebTreeGridHideFirstGroupToggle/Blazor.cs index d411da67..124b2a24 100644 --- a/code-gen-library/WebTreeGridHideFirstGroupToggle/Blazor.cs +++ b/code-gen-library/WebTreeGridHideFirstGroupToggle/Blazor.cs @@ -8,7 +8,7 @@ public class WebTreeGridHideFirstGroupToggle //begin eventHandler public void WebTreeGridHideFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args) { - var columnGroup = CodeGenHelper.GetDescription("content").ActualColumnList[1]; + var columnGroup = CodeGenHelper.GetDescription("content").GetColumns().ElementAt(1); columnGroup.Hidden = !columnGroup.Hidden; } //end eventHandler diff --git a/code-gen-library/WebTreeGridPinFirstGroupToggle/Blazor.cs b/code-gen-library/WebTreeGridPinFirstGroupToggle/Blazor.cs index 0d01cf82..d3265ff5 100644 --- a/code-gen-library/WebTreeGridPinFirstGroupToggle/Blazor.cs +++ b/code-gen-library/WebTreeGridPinFirstGroupToggle/Blazor.cs @@ -8,7 +8,7 @@ public class WebTreeGridPinFirstGroupToggle //begin eventHandler public void WebTreeGridPinFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args) { - var columnGroup = CodeGenHelper.GetDescription("content").ActualColumnList[1]; + var columnGroup = CodeGenHelper.GetDescription("content").GetColumns().ElementAt(1); columnGroup.Pinned = !columnGroup.Pinned; } //end eventHandler