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:
-
Apply a grouping column to data grid
-
Provide EmptyTemplate with following content (Example):
<EmptyTemplate>
<p style="color: lightgrey; font-size: 24px; text-align: center; margin: 2rem;">No Data Found</p>
</EmptyTemplate>
-
Ensure no data is bound to the grid to display the message.
-
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
Radzen Version 4.31.4