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.
https://www.radzen.com
MIT License
3.52k stars 785 forks source link

Can't insert row in empty datagrid since 5.0.0 #1611

Closed CyLuGh closed 2 months ago

CyLuGh commented 2 months ago

Describe the bug Since 5.0.0, RadzenDataGrid won't show newly created row if the bound collection was empty. It will work fine if there was at least one element in the collection. Everything is working fine on 4.34.4.

To Reproduce Steps to reproduce the behavior:

  1. Create a RadzenDataGrid with an empty list as its Data.
  2. Have a button that will create an item and it to the grid with await dataGrid.InsertRow(myObject);
  3. Nothing happens in the UI

Expected behavior Data grid should add a new row in edit mode

Screenshots Expected behavior: image

In 5.0.0, stuck on image

Desktop (please complete the following information):

enchev commented 2 months ago

Let's keep the conversation in the other issue: https://github.com/radzenhq/radzen-blazor/issues/1610