Problem with DataGrid new row when virtualization is on #1689

Closed
opened 2026-01-29 17:57:18 +00:00 by claunia · 1 comment
Owner

Originally created by @holyping on GitHub (Mar 29, 2025).

When RadzenDataGrid setted AllowVirtualization=true, and the Data property binds with an empty list, It can not add new row.

The issue can happen on demo page https://blazor.radzen.com/datagrid-inline-edit?theme=material3

Adds AllowVirtualization=true
Image

Change the binding data orders to an empty list
Image

When I click the add new order button, nothing happened
Image

But It will works well when there is one or more data in the "orders" field

Originally created by @holyping on GitHub (Mar 29, 2025). When RadzenDataGrid setted AllowVirtualization=true, and the Data property binds with an empty list, It can not add new row. The issue can happen on demo page https://blazor.radzen.com/datagrid-inline-edit?theme=material3 Adds AllowVirtualization=true ![Image](https://github.com/user-attachments/assets/c60bf154-ca36-4323-84ab-e308d2ebb752) Change the binding data orders to an empty list ![Image](https://github.com/user-attachments/assets/cbd0132c-70f7-4977-b531-3eb2c568816e) When I click the add new order button, nothing happened ![Image](https://github.com/user-attachments/assets/4ac93632-af05-4545-a172-c7b59daaed6d) But It will works well when there is one or more data in the "orders" field
Author
Owner

@enchev commented on GitHub (May 7, 2025):

When using virtualization you can add the new item in the collection bound to the DataGrid Data and call Reload().

@enchev commented on GitHub (May 7, 2025): When using virtualization you can add the new item in the collection bound to the DataGrid Data and call Reload().
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1689