Library Blazor Components NextGrid Reference Classes NextGrid Properties EmptyText

EmptyText

Text to be shown when grid have no data to show i.e. is empty.

razor
[Parameter]
public string EmptyText { get; set; } = "(Empty)";

Examples

razor
@page "/"
@using BergSoft.UI
@using BergSoft.UI.Blazor
@using Models

<NextGrid T="Product" ItemsSource="Products" EmptyText="No products">

</NextGrid>

@code {
    public List<Product> Products { get; set; } = new();
}

Sign in