Override "no records available" message while loading page

0 Answers 48 Views
LoaderContainer
Haewon
Top achievements
Rank 1
Haewon asked on 12 Aug 2024, 10:38 PM | edited on 13 Aug 2024, 02:22 PM

Hello.  Is there a way to override "No Records Available" message while the page is loading, for TalerikLoaderContainer for Blazor?

Found this https://docs.telerik.com/blazor-ui/components/grid/templates/no-data-template, but I was hoping to find something that's specific for loading. 

Hristian Stefanov
Telerik team
commented on 13 Aug 2024, 02:41 PM

Hi Haewon,

If you want to change the default text of the TelerikLoaderContainer component itself, you can set its Text parameter:

<p> Data Count: @Data?.Count </p>

<TelerikLoaderContainer Visible="@( Data == null )" Text="Please wait...CUSTOM TEXT HERE" />

@code {
    private List<string> Data { get; set; }

    protected override async Task OnInitializedAsync()
    {
        await Task.Delay(3000); // simulate slow loading of data

        Data = Enumerable.Range(1, 10).Select(x => $"data item {x}").ToList();
    }
}

Let me know if this is what you are looking for.

Kind Regards,

Hristian

No answers yet. Maybe you can help?

Tags
LoaderContainer
Asked by
Haewon
Top achievements
Rank 1
Share this question
or