DataGrid Inline insert error #1306

Closed
opened 2026-01-29 17:51:53 +00:00 by claunia · 5 comments
Owner

Originally created by @AliAjami2020 on GitHub (Jul 22, 2024).

Hi,
I upgraded the Radzen component from version 4.34.3 to 5, and when I clicked on 'Add New Row' to the DataGrid inline, it did not work. It affected all pages that have inline DataGrid inserts, and they are not working.
errorgrid

Originally created by @AliAjami2020 on GitHub (Jul 22, 2024). Hi, I upgraded the Radzen component from version 4.34.3 to 5, and when I clicked on 'Add New Row' to the DataGrid inline, it did not work. It affected all pages that have inline DataGrid inserts, and they are not working. ![errorgrid](https://github.com/user-attachments/assets/a89b8b11-2b69-4177-a27c-2df9f86cae5a)
Author
Owner

@CyLuGh commented on GitHub (Jul 22, 2024):

I just create #1611 about this, it seems to occur only when the source collection is empty. Is it like that for you too?

@CyLuGh commented on GitHub (Jul 22, 2024): I just create #1611 about this, it seems to occur only when the source collection is empty. Is it like that for you too?
Author
Owner

@AliAjami2020 commented on GitHub (Jul 22, 2024):

Thank you, I have not tested DataGrid with data source that has data yet, but it happened when I bounded the DataGrid to an empty data list initially. I am trying to first add multiple rows then save them to the database.

Was working fine with version 4.3
image

Nothing happening with version 5
image

@AliAjami2020 commented on GitHub (Jul 22, 2024): Thank you, I have not tested DataGrid with data source that has data yet, but it happened when I bounded the DataGrid to an empty data list initially. I am trying to first add multiple rows then save them to the database. Was working fine with version 4.3 ![image](https://github.com/user-attachments/assets/eedcce2a-a51c-4b72-ac66-5f7de85f55a6) Nothing happening with version 5 ![image](https://github.com/user-attachments/assets/b7604cb6-a836-4e6f-85bc-7cae257b1c7c)
Author
Owner

@enchev commented on GitHub (Jul 22, 2024):

There are no changes related to this functionality in Radzen.Blazor 5.0:
image

@enchev commented on GitHub (Jul 22, 2024): There are no changes related to this functionality in Radzen.Blazor 5.0: ![image](https://github.com/user-attachments/assets/6092cfdb-5467-4c98-9d7c-a293aa902f17)
Author
Owner

@AliAjami2020 commented on GitHub (Jul 22, 2024):

There are no changes related to this functionality in Radzen.Blazor 5.0: image

Thank you for checking. There are some changes in styles and themes in version 5. Could they effect it? when a user adds new record to the DataGrid, it is supposed to refresh the DataGrid and show the added row.

@AliAjami2020 commented on GitHub (Jul 22, 2024): > There are no changes related to this functionality in Radzen.Blazor 5.0: ![image](https://private-user-images.githubusercontent.com/5804953/351014082-6092cfdb-5467-4c98-9d7c-a293aa902f17.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2NjE0OTgsIm5iZiI6MTcyMTY2MTE5OCwicGF0aCI6Ii81ODA0OTUzLzM1MTAxNDA4Mi02MDkyY2ZkYi01NDY3LTRjOTgtOWQ3Yy1hMjkzYWE5MDJmMTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjJUMTUxMzE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2I0MzE0ZDlkZmQ2ODcyMDZmMWJiNmNhZDVhNTg3NWViY2QzYWJiMzYwN2VkNjUwNjc4ZTFlOTg3ZWM1NGQ3ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.OGu9UqaEVJSkZ0HYkh0W6POSjfrNOHDAkdMaF-ZzjNk) Thank you for checking. There are some changes in styles and themes in version 5. Could they effect it? when a user adds new record to the DataGrid, it is supposed to refresh the DataGrid and show the added row.
Author
Owner

@guuskuiper commented on GitHub (Feb 20, 2025):

What also helps is setting the ShowEmptyMessage parameter on the RadzenDataGrid to false.
Otherwise the EmptyText is shown when the grid is empty when you add add a new row.

@guuskuiper commented on GitHub (Feb 20, 2025): What also helps is setting the ShowEmptyMessage parameter on the RadzenDataGrid to false. Otherwise the EmptyText is shown when the grid is empty when you add add a new row.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1306