Skip to content

Commit 178a64a

Browse files
authored
GridDetailView / EmptyDataTemplate / LoadingTemplate not showing - fixed. (#926)
1 parent a9d1263 commit 178a64a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

blazorbootstrap/Components/Grid/GridDetailView.razor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ protected override async Task OnInitializedAsync()
2929
builder.AddContent(100, ChildContent, rowData);
3030
};
3131

32-
[CascadingParameter]
32+
[CascadingParameter(Name = "Parent")]
3333
public Grid<TItem> Parent { get; set; } = default!;
3434
}

blazorbootstrap/Components/Grid/GridEmptyDataTemplate.razor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ protected override async Task OnInitializedAsync()
2929
builder.AddContent(100, ChildContent);
3030
};
3131

32-
[CascadingParameter]
32+
[CascadingParameter(Name = "Parent")]
3333
public Grid<TItem> Parent { get; set; } = default!;
3434
}

blazorbootstrap/Components/Grid/GridLoadingTemplate.razor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ protected override async Task OnInitializedAsync()
2929
builder.AddContent(100, ChildContent);
3030
};
3131

32-
[CascadingParameter]
32+
[CascadingParameter(Name = "Parent")]
3333
public Grid<TItem> Parent { get; set; } = default!;
3434
}

0 commit comments

Comments
 (0)