MudBlazor/MudBlazor

MudDataGrid lags in cell edit mode

开放

#11,860 创建于 2025年9月8日

 (4 条评论) (4 个反应) (0 位负责人)C# (1,631 个派生)batch import
bughelp wantedperformance

仓库指标

星标
 (10,394 个星标)
PR 合并指标
 (平均合并 6天 6小时) (30 天内合并 108 个 PR)

描述

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

贡献者指南