Incorrect behavior after editing inserted item (DataGrid Inline Editing) #19

Closed
opened 2026-01-29 17:30:13 +00:00 by claunia · 0 comments
Owner

Originally created by @markbf on GitHub (Jan 27, 2021).

Describe the bug
The RowCreate callback is executed instead of RowUpdate on the most recent previously-inserted row when CancelEditRow or UpdateRow is called during subsequent editing.

To Reproduce
Steps to reproduce the behavior:

  1. In a DataGrid with Inline editing, add a new row and save it.
  2. Edit the same row.
  3. Click Save or Cancel.

Expected behavior
After step 1, the RowCreate callback is executed as expected. However, after step 3, the RowCreate callback is again executed. I would expect the RowEdit callback to be called at this point.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 87

Additional context
It appears that itemToInsert is not being cleared after step 1.

Originally created by @markbf on GitHub (Jan 27, 2021). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can report your issue or ask us a question via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. Specify all the steps required to reproduce the issue or link a project which reproduces it easily (without requiring extra steps such as restoring a database). --> **Describe the bug** The RowCreate callback is executed instead of RowUpdate on the most recent previously-inserted row when CancelEditRow or UpdateRow is called during subsequent editing. **To Reproduce** Steps to reproduce the behavior: 1. In a DataGrid with Inline editing, add a new row and save it. 2. Edit the same row. 3. Click Save or Cancel. **Expected behavior** After step 1, the RowCreate callback is executed as expected. However, after step 3, the RowCreate callback is again executed. I would expect the RowEdit callback to be called at this point. **Screenshots** **Desktop (please complete the following information):** - OS: Windows 10 - Browser Chrome - Version 87 **Additional context** It appears that itemToInsert is not being cleared after step 1.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#19