Skip to content

Commit

Permalink
Use ActualColumnList instead since it appear to be the on populated.
Browse files Browse the repository at this point in the history
  • Loading branch information
skrustev committed Aug 29, 2024
1 parent 8239d76 commit 52d4218
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions samples/grids/grid/data-summary-template/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
{
bool newValue = bool.Parse(args.NewValue.ToString());

var column1 = this.grid.ColumnList[3];
var column2 = this.grid.ColumnList[5];
var column1 = this.grid.ActualColumnList[3];
var column2 = this.grid.ActualColumnList[5];

column1.HasSummary = newValue;
column2.HasSummary = newValue;
Expand Down
2 changes: 1 addition & 1 deletion samples/grids/grid/finjs/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@
public void OnCellClick(IgbGridCellEventArgs e)
{
int colIndex = e.Detail.Cell.Id.ColumnID;
IgbColumn column = grid1.ColumnList.ElementAt(colIndex);
IgbColumn column = grid1.ActualColumnList.ElementAt(colIndex);
if (column.Field == "Chart")
{
string key = e.Detail.Cell.Id.RowID;
Expand Down
4 changes: 2 additions & 2 deletions samples/grids/grid/multi-column-headers-overview/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@

public void WebGridPinFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = this.grid.ColumnList[1];
var columnGroup = this.grid.ActualColumnList[1];
columnGroup.Pinned = !columnGroup.Pinned;
}

public void WebGridHideFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = this.grid.ColumnList[1];
var columnGroup = this.grid.ActualColumnList[1];
columnGroup.Hidden = !columnGroup.Hidden;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@
bool newValue = bool.Parse(args.NewValue.ToString());

var hierarchicalGrid = this.hierarchicalGrid;
var column1 = hierarchicalGrid.ColumnList[1];
var column2 = hierarchicalGrid.ColumnList[3];
var column3 = hierarchicalGrid.ColumnList[4];
var column1 = hierarchicalGrid.ActualColumnList[1];
var column2 = hierarchicalGrid.ActualColumnList[3];
var column3 = hierarchicalGrid.ActualColumnList[4];

column1.HasSummary = newValue;
column2.HasSummary = newValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,13 @@

public void WebHierarchicalGridPinFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = this.hierarchicalGrid.ColumnList[1];
var columnGroup = this.hierarchicalGrid.ActualColumnList[1];
columnGroup.Pinned = !columnGroup.Pinned;
}

public void WebHierarchicalGridHideFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = this.hierarchicalGrid.ColumnList[1];
var columnGroup = this.hierarchicalGrid.ActualColumnList[1];
columnGroup.Hidden = !columnGroup.Hidden;
}

Expand Down
6 changes: 3 additions & 3 deletions samples/grids/tree-grid/data-summary-template/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
bool newValue = bool.Parse(args.NewValue.ToString());

var treeGrid = this.treeGrid;
var column1 = treeGrid.ColumnList[1];
var column2 = treeGrid.ColumnList[2];
var column3 = treeGrid.ColumnList[4];
var column1 = treeGrid.ActualColumnList[1];
var column2 = treeGrid.ActualColumnList[2];
var column3 = treeGrid.ActualColumnList[4];

column1.HasSummary = newValue;
column2.HasSummary = newValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@

public void WebTreeGridPinFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = this.treeGrid.ColumnList[1];
var columnGroup = this.treeGrid.ActualColumnList[1];
columnGroup.Pinned = !columnGroup.Pinned;
}

public void WebTreeGridHideFirstGroupToggle(IgbPropertyEditorPropertyDescriptionButtonClickEventArgs args)
{
var columnGroup = this.treeGrid.ColumnList[1];
var columnGroup = this.treeGrid.ActualColumnList[1];
columnGroup.Hidden = !columnGroup.Hidden;
}

Expand Down

0 comments on commit 52d4218

Please sign in to comment.