RadzenGrid - datagrid revert changes on 'cancel' btn

Hi Brian,

EF Core can track, save and revert changes - the grid itself cannot. Here is the relevant code from our example:

    void CancelEdit(Order order)
    {
        ordersGrid.CancelEditRow(order);

        // For production
        var orderEntry = dbContext.Entry(order);
        orderEntry.CurrentValues.SetValues(orderEntry.OriginalValues);
        orderEntry.State = EntityState.Unchanged;
    }

Since you are using plain REST service you will need to get original values by yourself - for example you can save the original values in a variable before editing and restore them on cancel.