radzenhq / radzen-blazor

Radzen Blazor is a set of 90+ free native Blazor UI components packed with DataGrid, Scheduler, Charts and robust theming including Material design and FluentUI.

Home Page:https://www.radzen.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RadzenDataGrid EmptyTemplate alignment/colspan is incorrect when Data Grid uses Grouping

dave-gcv opened this issue · comments

Describe the bug
When using grouping and supplying <EmptyTemplate> the template does not have the correct colspan applied when the grid has no data. It appears that the colspan value that is calculated does not take into account the additional column that is created for the group. This is more obvious when the text displayed in the EmptyTemplate is center aligned

Steps to reproduce the behavior:

  1. Apply a grouping column to data grid

  2. Provide EmptyTemplate with following content (Example):

<EmptyTemplate>
<p style="color: lightgrey; font-size: 24px; text-align: center; margin: 2rem;">No Data Found</p>
</EmptyTemplate>
  1. Ensure no data is bound to the grid to display the message.

  2. Notice the text is not center aligned. Browser dev tools will show that the colspan is 1 less than it should be for the EmptyTemplate container.

Expected behavior
The text should be centered / colspan calculation should cater for grouping column

Screenshots
image
image

Radzen Version 4.31.4