MudBlazor/MudBlazor

MudDataGrid lags in cell edit mode

Offen

#11.860 geöffnet am 08.09.2025

 (4 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)C# (1.631 Forks)batch import
bughelp wantedperformance

Repository-Metriken

Stars
 (10.394 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 6h) (108 gemergte PRs in 30 T)

Beschreibung

Before reporting

  • I searched existing issues
  • I tried in private/incognito browser

What went wrong?

Loading a MudDataGrid with ~100 records of 8 columns causes massive delays when clicking on multiple cells. For example, if you accidentally click a cell, then quickly click another, there is a significant delay before the second input is available. Another example is when rendering checkboxes per row. Clicking checkboxes in rapid succession causes a delay in showing the new state and sometimes skips rows.

In the provided reproduction link, the sample data is 150 rows where the TryMudBlazor shows the issue. In our production app, this is a problem with as few as 50 rows.

I am using EditTemplate on each cell to be able to use the HideSpinButtons property of the MudNumericField as that is a requirement for our app. I believe I have done as much optimization as I can, but this is still a problem. I imagine the situation will only be worse on our user's browsers with much lower spec'd machines.

This is observable in Firefox and Chrome browsers

Reproduction link

https://try.mudblazor.com/snippet/waQTOXOCiumUqUWU

Reproduction steps

  1. Click the "Load Data" button. This will just create 150 rows of hard-coded sample data
  2. Click on any numeric cell, and quickly click another 2 or three
  3. Notice the delay before being able to edit the third cell

Version (bug)

v8.x.x.

Version (working)

N/A

Environment

No response

Blazor rendering mode

WASM

Contributor Guide