"No records to display" message is truncated in Datagrid when using a template #259

Closed
opened 2026-01-29 17:34:21 +00:00 by claunia · 0 comments
Owner

Originally created by @abbatepabloo on GitHub (Nov 18, 2021).

Describe the bug
Datagrid truncates "No records to display" message when a template is used. It only shows "No."

To Reproduce
Use a dataset with no rows. TotalRecordCount is zero

<RadzenDataGrid Data="Model.FilterResults"
                Count="Model.TotalRecordCount">
    <Columns>
        <RadzenDataGridColumn TItem="CustomerDtoRP"
                                Property="@nameof(CustomerDtoRP.Name)">
        </RadzenDataGridColumn>
    </Columns>
    <Template Context="item">
        <span>Some content here</span>
    </Template>
</RadzenDataGrid>

Expected behavior
It should display the entire message.
Suggestion: you can show this message in the next column (if any) instead of using the first one.

Screenshots

Expected:
image

Current:
image

Version: Radzen.Blazor.3.11.12

Originally created by @abbatepabloo on GitHub (Nov 18, 2021). **Describe the bug** Datagrid truncates **"No records to display"** message when a template is used. It only shows **"No."** **To Reproduce** Use a dataset with no rows. TotalRecordCount is zero ``` <RadzenDataGrid Data="Model.FilterResults" Count="Model.TotalRecordCount"> <Columns> <RadzenDataGridColumn TItem="CustomerDtoRP" Property="@nameof(CustomerDtoRP.Name)"> </RadzenDataGridColumn> </Columns> <Template Context="item"> <span>Some content here</span> </Template> </RadzenDataGrid> ``` **Expected behavior** It should display the entire message. *Suggestion:* you can show this message in the next column (if any) instead of using the first one. **Screenshots** Expected: ![image](https://user-images.githubusercontent.com/33328600/142470208-58f9639b-62a6-42ff-adce-1588dda834e0.png) Current: ![image](https://user-images.githubusercontent.com/33328600/142467751-02a9d914-990c-455c-bc97-3d16f9786bb5.png) Version: **Radzen.Blazor.3.11.12**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#259