Hi,
please see the attached Blazor WebAssembly sample project.
It contains a simple DataGrid in BatchEdit Mode that ends the edit mode and starts it right away in the cell saved event.
This sample works with Blazor Server (I copied it from https://www.syncfusion.com/forums/159578/blazor-grid-save-change-oncellsaved) but throws a exception when being used in a wasm app:
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Event 436 is already tracked
Error: Event 436 is already tracked
at e.add (https://localhost:5001/_framework/blazor.webassembly.js:1:42456)
at e.setListener (https://localhost:5001/_framework/blazor.webassembly.js:1:40690)
at e.applyAttribute (https://localhost:5001/_framework/blazor.webassembly.js:1:36857)
at e.insertElement (https://localhost:5001/_framework/blazor.webassembly.js:1:35691)
at e.insertFrame (https://localhost:5001/_framework/blazor.webassembly.js:1:34562)
at e.applyEdits (https://localhost:5001/_framework/blazor.webassembly.js:1:32948)
at e.updateComponent (https://localhost:5001/_framework/blazor.webassembly.js:1:32264)
at Object.t.renderBatch (https://localhost:5001/_framework/blazor.webassembly.js:1:12129)
at Object.window.Blazor._internal.renderBatch (https://localhost:5001/_framework/blazor.webassembly.js:1:61899)
at Object.w [as invokeJSFromDotNet] (https://localhost:5001/_framework/blazor.webassembly.js:1:64421)
Please let me know if I'm facing a bug here or where I screwed up ...
Maybe this is related to https://github.com/dotnet/aspnetcore/issues/27382
Thank you!
Stefan
Attachment:
DataGridWasmError_e7dded43.zip