Skip to content

Commit

Permalink
Merge pull request #719 from IgniteUI/skrastev/grid-columns-proper
Browse files Browse the repository at this point in the history
  • Loading branch information
dkamburov authored Nov 5, 2024
2 parents 0d91cbe + 276f3e8 commit b83ee58
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions code-gen-library/WebGridHasSummariesChange/Blazor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public void WebGridHasSummariesChange(IgbPropertyEditorPropertyDescriptionChange
{
bool newValue = bool.Parse(args.NewValue.ToString());

var column1 = CodeGenHelper.GetDescription<IgbGrid>("content").ActualColumnList[3];
var column2 = CodeGenHelper.GetDescription<IgbGrid>("content").ActualColumnList[5];
var column1 = CodeGenHelper.GetDescription<IgbGrid>("content").GetColumns().ElementAt(3);
var column2 = CodeGenHelper.GetDescription<IgbGrid>("content").GetColumns().ElementAt(5);

column1.HasSummary = newValue;
column2.HasSummary = newValue;
Expand Down
2 changes: 1 addition & 1 deletion code-gen-library/WebGridHideFirstGroupToggle/Blazor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class WebGridHideFirstGroupToggle
//begin eventHandler
public void WebGridHideFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = CodeGenHelper.GetDescription<IgbGrid>("content").ActualColumnList[1];
var columnGroup = CodeGenHelper.GetDescription<IgbGrid>("content").GetColumns().ElementAt(1);
columnGroup.Hidden = !columnGroup.Hidden;
}
//end eventHandler
Expand Down
2 changes: 1 addition & 1 deletion code-gen-library/WebGridPinFirstGroupToggle/Blazor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class WebGridPinFirstGroupToggle
//begin eventHandler
public void WebGridPinFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = CodeGenHelper.GetDescription<IgbGrid>("content").ActualColumnList[1];
var columnGroup = CodeGenHelper.GetDescription<IgbGrid>("content").GetColumns().ElementAt(1);
columnGroup.Pinned = !columnGroup.Pinned;
}
//end eventHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public void WebHierarchicalGridHasSummariesChange(IgbPropertyEditorPropertyDescr
bool newValue = bool.Parse(args.NewValue.ToString());

var hierarchicalGrid = CodeGenHelper.GetDescription<IgbHierarchicalGrid>("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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class WebHierarchicalGridHideFirstGroupToggle
//begin eventHandler
public void WebHierarchicalGridHideFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = CodeGenHelper.GetDescription<IgbHierarchicalGrid>("content").ActualColumnList[1];
var columnGroup = CodeGenHelper.GetDescription<IgbHierarchicalGrid>("content").GetColumns().ElementAt(1);
columnGroup.Hidden = !columnGroup.Hidden;
}
//end eventHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class WebHierarchicalGridPinFirstGroupToggle
//begin eventHandler
public void WebHierarchicalGridPinFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = CodeGenHelper.GetDescription<IgbHierarchicalGrid>("content").ActualColumnList[1];
var columnGroup = CodeGenHelper.GetDescription<IgbHierarchicalGrid>("content").GetColumns().ElementAt(1);
columnGroup.Pinned = !columnGroup.Pinned;
}
//end eventHandler
Expand Down
6 changes: 3 additions & 3 deletions code-gen-library/WebTreeGridHasSummariesChange/Blazor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public void WebTreeGridHasSummariesChange(IgbPropertyEditorPropertyDescriptionCh
bool newValue = bool.Parse(args.NewValue.ToString());

var treeGrid = CodeGenHelper.GetDescription<IgbTreeGrid>("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;
Expand Down
2 changes: 1 addition & 1 deletion code-gen-library/WebTreeGridHideFirstGroupToggle/Blazor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class WebTreeGridHideFirstGroupToggle
//begin eventHandler
public void WebTreeGridHideFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = CodeGenHelper.GetDescription<IgbTreeGrid>("content").ActualColumnList[1];
var columnGroup = CodeGenHelper.GetDescription<IgbTreeGrid>("content").GetColumns().ElementAt(1);
columnGroup.Hidden = !columnGroup.Hidden;
}
//end eventHandler
Expand Down
2 changes: 1 addition & 1 deletion code-gen-library/WebTreeGridPinFirstGroupToggle/Blazor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class WebTreeGridPinFirstGroupToggle
//begin eventHandler
public void WebTreeGridPinFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = CodeGenHelper.GetDescription<IgbTreeGrid>("content").ActualColumnList[1];
var columnGroup = CodeGenHelper.GetDescription<IgbTreeGrid>("content").GetColumns().ElementAt(1);
columnGroup.Pinned = !columnGroup.Pinned;
}
//end eventHandler
Expand Down

0 comments on commit b83ee58

Please sign in to comment.