Skip to content

Commit

Permalink
Fix Pivot sample data and data selector grid ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
skrustev committed Oct 31, 2024
1 parent 1bd7ec8 commit 0e5b2df
Show file tree
Hide file tree
Showing 2 changed files with 1,050 additions and 1,046 deletions.
12 changes: 8 additions & 4 deletions samples/grids/pivot-grid/data-selector/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@
</IgbPivotGrid>
</div>
<div class="container vertical" style="width: auto;">
<IgbPivotDataSelector @ref="selector" Grid=@grid></IgbPivotDataSelector>
<IgbPivotDataSelector @ref="selector"></IgbPivotDataSelector>
</div>

</div>

@code {
protected override async Task OnInitializedAsync()
protected override void OnAfterRender(bool firstRender)
{


base.OnAfterRender(firstRender);
if (firstRender)
{
selector.Grid = grid;
}
}

public IgbPivotGrid grid;
private IgbPivotDataSelector selector;
private IgbPivotConfiguration _pivotConfiguration = null;
Expand Down
Loading

0 comments on commit 0e5b2df

Please sign in to comment.