Hi Radzen Team,
I'm using a RadzenDataGrid with inline editing enabled. When I add a new row and then click the cancel (X) button to discard the changes, I would expect the row to disappear immediately. However, the row remains visible in the grid until I close and reopen the page — only then is it gone, confirming that it was not saved.
I'm wondering if this behavior might be caused by the fact that I assign default values to the new row programmatically when it is created. Could this be preventing the grid from removing the unsaved row right away?
What would be the proper way to ensure that a new, unsaved row is immediately removed from the grid when the cancel button is clicked?
My CancelEdit method looks like this:
protected async Task CancelEdit(WebAssets.Models.webassets.VstOptionenzeitraeume args)
{
grid0.CancelEditRow(args);
await webassetsService.CancelVstOptionenzeitraeumeChanges(args);
await grid0.Reload();
}
Thanks in advance for your help!