DataGridEditMode Multiple

Hello Radzen Team,

I see in the documentation the property DataGridEditMode which has supported values of Single and Multiple. I have successfully followed the demo and gotten inline editing working for a single row, but was wondering if there are any examples or additional documentation for the DataGridEditMode.Multiple. Basically I'd like to be able to put an entire grid into edit mode and allow each row to be edited and then saved all at once.

Thanks in advance!

Hi @emdear,

While putting multiple rows in edit mode is possible indeed saving them at once is not possible.

1 Like

Thanks for the quick reply.

In order to put multiple rows into edit mode at once should I just loop the rows and call EditRow(row) for each, or is there another way I could/should accomplish that?

Thanks!

Hi Radzen Team,

Just wanted to follow up on if there is any information or guidance on how to utilize the DataGridEditMode.Multiple property.

Currently I am utilizing the RowRender event and setting the row to edit mode there, but not sure if that is the optimal way of utilizing multiple edit mode.

protected void RowRender(RowRenderEventArgs<Account> args)
    {
        accountGrid.EditRow(args.Data);
    }

Thanks!

The EditMode property just specifies whether to clear the last item in edit mode or to keep it. The developer is still responsible for invoking the EditRow method to put rows in edit mode.

If cannot saving it at once. How to save all maybe loop save?